I need to extend React.FC with custom interface like this:
interface IComponent<P = {}> extends React.FC {
custom?: {a: string, b: string};
}
const Page:IComponent<{text: string}> = ({text}) => (
<>{text}</>
)
Page.custom = {a: '1', b: '2'}
Page.custom is typed correctly, but React.FC props functionality is lost. How do I fix this?