--- export interface FeaturedItemType { isUpcoming?: boolean; isNew?: boolean; url: string; text: string; } export interface Props extends FeaturedItemType {} const { isUpcoming = false, isNew = false, text, url } = Astro.props; --- {text} { isNew && ( New ) } { isUpcoming && ( Upcoming ) }