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) => (
คู่มือเสริม