diff --git a/src/entities/common/ui/download-type-bottom-sheet.tsx b/src/entities/common/ui/download-type-bottom-sheet.tsx deleted file mode 100644 index 2e9942e..0000000 --- a/src/entities/common/ui/download-type-bottom-sheet.tsx +++ /dev/null @@ -1,92 +0,0 @@ -import { BottomSheetMotionDuration, BottomSheetMotionVaiants } from '@/entities/common/model/constant'; -import { IMAGE_ROOT } from '@/shared/constants/common'; -import { motion } from 'framer-motion'; -import { useTranslation } from 'react-i18next'; - -export interface DownloadTypeBottomSheetProps { - bottomSheetOn: boolean; - setBottomSheetOn: (bottomSheetOn: boolean) => void; - onSelectType: (type: 'IMAGE' | 'EMAIL') => void; -} - -export const DownloadTypeBottomSheet = ({ - bottomSheetOn, - setBottomSheetOn, - onSelectType -}: DownloadTypeBottomSheetProps) => { - const { t } = useTranslation(); - - const onClickToClose = () => { - setBottomSheetOn(false); - }; - - const handleSelectType = (type: 'IMAGE' | 'EMAIL') => { - onSelectType(type); - setBottomSheetOn(false); - }; - - return ( - <> - { (bottomSheetOn) && -
- } - -
-
-

{t('common.selectDownloadMethod')}

- -
-
- -
-
-
handleSelectType('IMAGE')} - style={{ cursor: 'pointer' }} - > -
-
- {t('common.image')} -
- {t('common.imageSave')} -
- -
handleSelectType('EMAIL')} - style={{ cursor: 'pointer' }} - > -
-
- {t('common.mail')} -
- {t('common.receiveByEmail')} -
-
-
-
- - ); -};