--- interface Props { open?: boolean; } const { open = false } = Astro.props; --- {open ? '[-]' : '[+] comments collapsed'}