import { Flex, IconButton } from '@chakra-ui/react'; import { AnimatePresence } from 'framer-motion'; import { AnimatedDiv, DynamicIcon } from '~/components'; import { useColorValue } from '~/context'; import { useOpposingColor, useFormState } from '~/hooks'; import type { TResetButton } from './types'; export const ResetButton = (props: TResetButton): JSX.Element => { const { developerMode, resetForm, ...rest } = props; const status = useFormState(s => s.status); const bg = useColorValue('primary.500', 'primary.300'); const color = useOpposingColor(bg); return ( {status === 'results' && ( } /> )} ); };