--- // A tinted aside for a note, a tip or a warning inside docs prose. MDX pages use the // named wrappers next to this file (, , , , ), which // [...slug].astro passes to — so a page can call them without importing. import Icon from '@ui/Icon.astro' export type CalloutType = 'info' | 'tip' | 'warning' | 'danger' | 'note' interface Props { type?: CalloutType /** Bold first line. Without it the callout is body text only. */ title?: string | undefined } const { type = 'info', title } = Astro.props const icons: Record = { info: 'info-circle', tip: 'bulb', warning: 'alert-triangle', danger: 'alert-circle', note: 'pencil', } const labels: Record = { info: 'Info', tip: 'Tip', warning: 'Warning', danger: 'Danger', note: 'Note', } ---