diff --git a/src/app/test/result/_components/ImageBox.tsx b/src/app/test/result/_components/ImageBox.tsx index 8d324765..0f19cab8 100644 --- a/src/app/test/result/_components/ImageBox.tsx +++ b/src/app/test/result/_components/ImageBox.tsx @@ -6,30 +6,35 @@ import FirstResultType from '@/assets/images/result/firstResultType.svg'; import ForthResultType from '@/assets/images/result/forthResultType.svg'; import SecondResultType from '@/assets/images/result/secondResultType.svg'; import ThirdResultType from '@/assets/images/result/thirdResultType.svg'; -import { Icon } from '@/components/common/icon'; +import { Button } from '@/components/common/button'; +import { Spinner } from '@/components/common/spinner'; import { Typography } from '@/foundations/typography'; import { useDownloadImage } from '@/hooks/useDownloadImage'; import { Range } from '@/types/util'; // TODO : 백엔드와 논의하여 resultTypeId 프로퍼티 결정 const ImageBox = ({ resultTypeId = 4 }: { resultTypeId: Range<1, 5> }) => { - const imageRef = useRef(null); - const { onDownloadImage } = useDownloadImage({ imageRef }); + const imageRef = useRef(null); + const { isDownloading, onDownloadImage } = useDownloadImage({ imageRef }); const handleDownloadImage = async () => { await onDownloadImage(); }; return (
- -
- - - 이미지 꾹 - 눌러서 저장하기 - - +
{resultTypeMap[resultTypeId]}
+
+
);