import { Children, type PropsWithChildren } from 'react'; import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map'; import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps'; interface WideNarrowPageProps extends PConnProps { // If any, enter additional props that only exist on this component title: string; templateCol?: string; icon?: string; } /* * The wrapper handles knowing how to take in just children and mapping * to the Cosmos template. */ export default function WideNarrowPage(props: PropsWithChildren) { // Get emitted components from map (so we can get any override that may exist) const WideNarrow = getComponentFromMap('WideNarrow'); const { children, title, templateCol = '1fr 1fr', icon = '' } = props; const childArray = Children.toArray(children); return (
); }