interface AppProps { withInserted?: boolean; } function FirstItem() { return ; } function InsertedItem() { return inserted; } function ThirdItem() { return ; } export function App({ withInserted = false }: AppProps) { return ( {withInserted ? ( <> ) : ( <> )} ); } export const mainProps = { withInserted: false }; export const backgroundProps = { withInserted: true };