import styled from '@emotion/styled'; import { motion } from 'framer-motion'; import { ThemeColor } from 'twenty-ui'; const StyledLoaderContainer = styled.div<{ color?: ThemeColor; }>` justify-content: center; align-items: center; display: flex; gap: ${({ theme }) => theme.spacing(2)}; width: ${({ theme }) => theme.spacing(6)}; height: ${({ theme }) => theme.spacing(3)}; border-radius: ${({ theme }) => theme.border.radius.pill}; border: 1px solid ${({ color, theme }) => color ? theme.tag.text[color] : theme.font.color.tertiary}; overflow: hidden; `; const StyledLoader = styled(motion.div)<{ color?: ThemeColor; }>` background-color: ${({ color, theme }) => color ? theme.tag.text[color] : theme.font.color.tertiary}; border-radius: ${({ theme }) => theme.border.radius.pill}; height: 8px; width: 8px; `; type LoaderProps = { color?: ThemeColor; }; export const Loader = ({ color }: LoaderProps) => ( );