import { Box, Flex } from '@invoke-ai/ui-library'; import type { AnimationProps } from 'framer-motion'; import { motion } from 'framer-motion'; import type { ReactNode } from 'react'; import { memo, useRef } from 'react'; import { useTranslation } from 'react-i18next'; import { v4 as uuidv4 } from 'uuid'; type Props = { isOver: boolean; label?: ReactNode; }; const initial: AnimationProps['initial'] = { opacity: 0, }; const animate: AnimationProps['animate'] = { opacity: 1, transition: { duration: 0.1 }, }; const exit: AnimationProps['exit'] = { opacity: 0, transition: { duration: 0.1 }, }; const IAIDropOverlay = (props: Props) => { const { t } = useTranslation(); const { isOver, label = t('gallery.drop') } = props; const motionId = useRef(uuidv4()); return ( {label} ); }; export default memo(IAIDropOverlay);