// A callout for something the reader should notice, with an optional icon, a title, and a // description. The destructive variant is for errors. import type { Child, Html } from '../lib/jsx/jsx-runtime.ts' import css from './alert.css' with { type: 'text' } export const ALERT_CSS = css type Props = Record & { children?: Child } export function Alert(props: Props & { variant?: 'default' | 'destructive' | undefined }): Html { let { variant = 'default', children, ...attributes } = props return (
{children}
) } export function AlertTitle(props: Props): Html { let { children, ...attributes } = props return (
{children}
) } export function AlertDescription(props: Props): Html { let { children, ...attributes } = props return (
{children}
) }