diff --git a/apps/client/src/widgets/home/components/info-section/recommended-info-section.tsx b/apps/client/src/widgets/home/components/info-section/recommended-info-section.tsx index 27e7f7d8..cffef3f1 100644 --- a/apps/client/src/widgets/home/components/info-section/recommended-info-section.tsx +++ b/apps/client/src/widgets/home/components/info-section/recommended-info-section.tsx @@ -15,37 +15,27 @@ import { StatusType } from '@shared/types/type.ts'; import * as styles from './recommended-info-section.css.ts'; -interface recommendedInfoSectionProps { +interface StaticContentProps { userName?: string; + productName?: string; + company?: string; + keywordChips?: string[]; } -/** 보험 추천받은 유저가 볼 화면 */ -export const RecommendedInfoSection = ({ +const StaticContent = ({ userName, -}: recommendedInfoSectionProps) => { - const navigate = useNavigate(); - const handleNavigateReport = () => { - navigate(routePath.REPORT); - }; - - const { data: reportSummary } = useSuspenseQuery( - HOME_QUERY_OPTIONS.REPORT_SUMMARY(), - ); - const targetToIconMap = new Map( - homeCardConfig.map(({ target, icon }) => [target, icon]), - ); - - if (!reportSummary) { - return; - } - + productName, + company, + keywordChips, +}: StaticContentProps) => { return ( -
+ <>
- {reportSummary.keywordChips?.map((chip, index) => ( + {keywordChips?.map((chip, index) => (
+ + ); +}; +interface BottomButtonProps { + onClick: () => void; +} + +const BottomButton = ({ onClick }: BottomButtonProps) => { + return ( +
+ +

구체적인 내용 확인하기

+ +
+
+ ); +}; + +interface recommendedInfoSectionProps { + userName?: string; +} + +/** 보험 추천받은 유저가 볼 화면 */ +export const RecommendedInfoSection = ({ + userName, +}: recommendedInfoSectionProps) => { + const navigate = useNavigate(); + const handleNavigateReport = () => navigate(routePath.REPORT); + + const { data: reportSummary } = useSuspenseQuery( + HOME_QUERY_OPTIONS.REPORT_SUMMARY(), + ); + + const targetToIconMap = new Map( + homeCardConfig.map(({ target, icon }) => [target, icon]), + ); + + if (!reportSummary) { + return; + } + + return ( +
+ {reportSummary.statuses?.map((card, index) => ( @@ -92,13 +131,7 @@ export const RecommendedInfoSection = ({ ))} - -
- -

구체적인 내용 확인하기

- -
-
+
); };