import type { ReactNode } from "react"; import { ErrorWrapper } from "../components/ErrorWrapper"; export function withErrorWrapper( Component: (props: Props) => ReactNode, ) { return function (props: Props) { return ( ); }; }