genericFooter.tsx 700 B

123456789101112131415161718192021222324252627282930
  1. import styled from '@emotion/styled';
  2. import {motion} from 'framer-motion';
  3. import testableTransition from 'sentry/utils/testableTransition';
  4. const GenericFooter = styled((props: React.ComponentProps<typeof motion.div>) => (
  5. <motion.div
  6. initial="initial"
  7. animate="animate"
  8. exit="exit"
  9. variants={{animate: {}}}
  10. transition={testableTransition({
  11. staggerChildren: 0.2,
  12. })}
  13. {...props}
  14. />
  15. ))`
  16. width: 100%;
  17. position: fixed;
  18. bottom: 0;
  19. left: 0;
  20. height: 72px;
  21. z-index: 100;
  22. display: flex;
  23. background-color: ${p => p.theme.background};
  24. justify-content: space-between;
  25. box-shadow: ${p => p.theme.dropShadowHeavyTop};
  26. `;
  27. export default GenericFooter;