import type { ReactNode } from 'react'; import { memo } from 'react'; import SettingsGroupPage from '../SettingsGroupPage'; import Section from '../SettingsSection'; export type GenericGroupPageProps = { _id: string; i18nLabel: string; tabs?: ReactNode; currentTab?: string; hasReset?: boolean; sections: string[]; headerButtons?: ReactNode; onClickBack?: () => void; }; function GenericGroupPage({ _id, i18nLabel, sections, tabs, currentTab, hasReset, onClickBack, ...props }: GenericGroupPageProps) { const solo = sections.length === 1; return ( {sections.map((sectionName) => (
))} ); } export default memo(GenericGroupPage);