diff --git a/src/app/insight/page.tsx b/src/app/insight/page.tsx index 0960a89..104da90 100644 --- a/src/app/insight/page.tsx +++ b/src/app/insight/page.tsx @@ -102,6 +102,7 @@ const Page = () => { onClick={() => handleInsightClick(insight)} > { +const NewsCardVertical = ({ id, date, title, description, imageUrl, path, isMock = false }: NewsCardVerticalProps) => { + const cardContent = ( + <> + + {date} + + + {title} + + + {description} + + + ); + return ( - - {imageUrl && ( + {imageUrl && + (isMock ? ( - )} - + ) : ( + + + + ))} - - - {date} - - - {title} - - - {description} - - + {isMock ? ( + cardContent + ) : ( + + {cardContent} + + )} - {imageUrl && ( - - articleImage - - )} ); };