import type { ReactNode } from 'react'; type CalloutType = 'info' | 'warn'; const styles: Record = { info: { box: 'border-[#C9DEFF] bg-[#F2F7FF]', icon: 'bg-[#DCEAFF] text-[var(--dk-accent)]', body: 'text-[#2A4574] [&_b]:text-[var(--dk-heading)] [&_strong]:text-[var(--dk-heading)]', }, warn: { box: 'border-[#FBE3B8] bg-[#FFF9EE]', icon: 'bg-[#FCEAC4] text-[#B7791F]', body: 'text-[#7A5A1B] [&_b]:text-[#5C4310] [&_strong]:text-[#5C4310]', }, }; export function Callout({ type = 'info', children }: { type?: CalloutType; children: ReactNode }) { const s = styles[type]; return (
{type === 'info' ? ( <> ) : ( <> )}
:first-child]:mt-0 [&_a:hover]:underline [&_a]:font-semibold`} > {children}
); }