import type { PropsWithChildren, ReactElement } from 'react'; import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps'; import './NarrowWideForm.css'; interface NarrowWideFormProps extends PConnProps { // If any, enter additional props that only exist on this component } export default function NarrowWideForm(props: PropsWithChildren) { const { children } = props; return ( <> {children && (children as ReactElement[]).length === 2 && (
{children[0]}
{children[1]}
)} ); }