Advertisement
Guest User

Untitled

a guest
Mar 24th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. import React from 'React'
  2. import { useStore } from '../store'
  3.  
  4. const style = {
  5. position: 'absolute',
  6. bottom: 0,
  7. width: '100%',
  8. height: '2em',
  9. padding: '.5em',
  10. background: '#333',
  11. color: '#fff',
  12. }
  13.  
  14. function Notifications () {
  15. const { notifications } = useStore()
  16. return (
  17. <div style={style}>
  18. {notifications.message}
  19. </div>
  20. )
  21. }
  22.  
  23. export default Notifications
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement