import Lottie from 'react-lottie'; import emptyDarkAnimationData from '../../assets/animations/empty_dark.json'; import emptyAnimationData from '../../assets/animations/empty.json'; import { useTheme } from '../../hooks/theme'; import { Button } from '../Button'; import { Flex } from '../Flex'; import { Heading } from '../Heading'; import { Text } from '../Text'; type EmptyProps = { title: string; description: string; actionText?: string; action?: () => void; }; export function Empty({ title, description, actionText, action, }: EmptyProps): JSX.Element { const { colorScheme, theme } = useTheme(); return ( {theme === 'light' ? ( ) : ( )} {title} {description} {!!action && !!actionText && ( )} ); }