From 20ca7f6303f6e33932ff91358ff51da31492a3de Mon Sep 17 00:00:00 2001 From: gunshiz Date: Sat, 5 Sep 2026 13:48:03 +0700 Subject: [PATCH] feat(extra) : add branded export background --- components/public/structured-guide.tsx | 42 ++++++++++++++++++++++---- 1 file changed, 36 insertions(+), 6 deletions(-) diff --git a/components/public/structured-guide.tsx b/components/public/structured-guide.tsx index b6ab09d..d8b90f9 100644 --- a/components/public/structured-guide.tsx +++ b/components/public/structured-guide.tsx @@ -305,7 +305,7 @@ function GuideSection({ return ; if (section === "team") return ; const extra = guide.extras.find((item) => item.slug === section); - return extra ? : null; + return extra ? : null; } function metric(value: string | null) { @@ -1179,13 +1179,20 @@ function TeamSection({ guide }: { guide: PublicGuide }) { ); } -function ExtraSection({ extra }: { extra: PublicGuide["extras"][number] }) { +function ExtraSection({ + guide, + extra, +}: { + guide: PublicGuide; + extra: PublicGuide["extras"][number]; +}) { return ( - + } /> @@ -1193,22 +1200,45 @@ function ExtraSection({ extra }: { extra: PublicGuide["extras"][number] }) { } function ExtraSectionContent({ + guide, extra, action, exporting = false, }: { + guide: PublicGuide; extra: PublicGuide["extras"][number]; action?: React.ReactNode; exporting?: boolean; }) { return ( -
-
+
+ {exporting ? ( + <> + +
+ + + ) : null} +

คู่มือเสริม

{extra.title}

{action}
-
+
{extra.rows.map((row) => (