Waiter.jsx 479 B

1234567891011121314151617181920212223242526272829
  1. import React from "react";
  2. import styled from "styled-components";
  3. const Overlay = styled.div`
  4. position: fixed;
  5. width: 100vw;
  6. height: 100vh;
  7. top: 0;
  8. left: 0;
  9. background-color: var(--bg-color);
  10. opacity: 0.9;
  11. color: #606984;
  12. display: flex;
  13. justify-content: center;
  14. align-items: center;
  15. z-index: 295;
  16. font-size: 3em;
  17. `;
  18. const Waiter = ({ message }) => {
  19. return (
  20. <Overlay>
  21. <div>{message}</div>
  22. </Overlay>
  23. );
  24. };
  25. export default Waiter;