TypeScript

How to pass JSON as a prop?

I have a component that gets 2 props, one is another component and the second is a JSON file:
interface HeaderProps {
title: ReactElement<typeof Title>;
data: any;
}

The prop ‘title’ is very specific and shows that only the comp…