import React, { memo } from 'react'; import GroupPage from '../GroupPage'; import { Section } from '../Section'; import { useEditableSettingsGroupSections } from '../../../contexts/EditableSettingsContext'; function GenericGroupPage({ _id, ...group }) { const sections = useEditableSettingsGroupSections(_id); const solo = sections.length === 1; return {sections.map((sectionName) =>
)} ; } export default memo(GenericGroupPage);