import dynamic from 'next/dynamic'; import { Box, Flex, Icon, IconButton, Slide } from '@chakra-ui/react'; import { useColorValue } from '~/context'; import { useLGState, useOpposingColor } from '~/hooks'; import type { TResetButton } from './types'; const LeftArrow = dynamic(() => import('@meronex/icons/fa').then(i => i.FaAngleLeft)); export const ResetButton = (props: TResetButton) => { const { developerMode, resetForm, ...rest } = props; const { isSubmitting } = useLGState(); const bg = useColorValue('primary.500', 'primary.300'); const color = useOpposingColor(bg); return ( } /> ); };