interface AppProps { withLeadingItem?: boolean; } function LeadingItem() { return ; } function FirstItem() { return ; } function SecondItem() { return ; } export function App({ withLeadingItem = false }: AppProps) { return ( {withLeadingItem ? ( <> ) : ( <> )} ); } export const mainProps = { withLeadingItem: false }; export const backgroundProps = { withLeadingItem: true };