--- interface Props { title?: string; emoji?: string; class?: string; variant?: "neutral" | "info" | "success" | "danger"; } const { title, emoji, class: className, variant = "neutral", ...props } = Astro.props as Props; const wrapperClass = ["note", `note--${variant}`, className] .filter(Boolean) .join(" "); ---
{title ? (
{emoji && }
{title}
) : (
{ emoji && ( ) }
)}