/** * Tab — Single tab pane, must be a direct child of EmTabs. * * @param {Object} props * @param {string} props.label — text shown in the tab button * @param {string} props.slug — identifier used in URL query-param * @param {React.ReactNode} props.children — content shown when this tab is active * @param {boolean} [props.isPro] — whether this tab is for Pro version only * @param {'ok'|'empty'|'error'} [props.status] — status indicator for the tab * @return {JSX.Element} */ interface TabProps { children: React.ReactNode; isPro?: boolean; label: string; slug: string; status?: 'ok' | 'empty' | 'error'; } export default function Tab( { children }: TabProps ) { return <>{ children }; }