'use client'; import * as Common from './Common'; import { FormContext, FormContextProvider } from './context/form-context'; import * as Documents from './Documents'; import { Header } from './Header'; import { Overlay } from './Overlay'; import type { FormComponentProps } from './types'; import { createUrl } from '@/utils/url'; import { Background, Divider } from '@repo/ui'; import type { FC } from 'react'; import { useContext } from 'react'; function Content(props: FormComponentProps) { const { title } = props; const { pageUrlParams } = useContext(FormContext); return (
); } function withContext(Component: FC) { return (props: T) => { const { pageUrlParams } = props; return ( ); }; } export const Form = withContext(Content);