import type { PropsWithChildren, ReactElement } 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 NarrowWidePageProps 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 NarrowWidePage(props: PropsWithChildren) { // Get emitted components from map (so we can get any override that may exist) const NarrowWide = getComponentFromMap('NarrowWide'); const { children, title, templateCol = '1fr 1fr', icon = '' } = props; const childrenToRender = children as ReactElement[]; return (
); }