type Props = { active: boolean; }; export default function TabPanel(props: React.PropsWithChildren) { const { active, children } = props; const classNames = ["content-tab"]; if (!active) { classNames.push("hidden"); } return (
{children}
); }