--- interface Props> { wrapper: (props: T) => any; props?: T; condition: boolean; } const { wrapper: Wrapper, condition, props } = Astro.props; --- {/* ------------------------------------------- HTML ------------------------------------------- */} { condition ? ( ) : ( ) }