Accepted answer

The error is indicating that the Footer component requires a prop inModal to be passed to it. To fix the issue, you can either:

Give it a default value:

const Footer = ({ children, inModal = false }) => ...

Tell typescript that it's optional:

const Footer = ({ children, inModal }: {children: any, inModal?: boolean}) => ...

Or explicitly provide that prop whenever you use the footer:

<Footer inModal={false}> ... </Footer>

Related Query

More Query from same tag