No overload matches this call.
The last overload gave the following error.
Argument of type 'ReactNode' is not assignable to parameter of type 'FunctionComponentElement<P>'.
Type 'undefined' is not assignable to type 'FunctionComponentElement<P>'.ts(2769)
index.d.ts(328, 14): The last overload is declared here.
index.d.ts:
/ Custom components
function cloneElement<P>(
element: FunctionComponentElement<P>,
props?: Partial<P> & Attributes,
...children: ReactNode[]): FunctionComponentElement<P>;
function cloneElement<P, T extends Component<P, ComponentState>>(
element: CElement<P, T>,