"use client"; import { Box, Heading, Text, VStack } from "@chakra-ui/react"; interface Section { title: string; content: string | string[]; } interface LegalPageProps { title: string; lastUpdated: string; sections: Section[]; } export default function LegalPage({ title, lastUpdated, sections }: LegalPageProps) { return ( {title} {lastUpdated} {sections.map((section, i) => ( {section.title} {Array.isArray(section.content) ? ( {section.content.map((para, j) => ( {para} ))} ) : ( {section.content} )} ))} ); }