--- interface Props { type?: 'info' | 'success' | 'warning'; title?: string; } const { type = 'info', title } = Astro.props; const styles = { info: { wrapper: 'border-accent-500/35 bg-accent-500/[0.07]', icon: 'text-accent-300', title: 'text-accent-200', }, success: { wrapper: 'border-emerald-500/35 bg-emerald-500/[0.08]', icon: 'text-emerald-300', title: 'text-emerald-200', }, warning: { wrapper: 'border-amber-500/35 bg-amber-500/[0.09]', icon: 'text-amber-300', title: 'text-amber-200', }, } as const; const variant = styles[type]; ---
{title}
}