import clsx from 'clsx'
import type { ReactNode } from 'react'
import { InfoIcon } from '../../icons/InfoIcon'
import styles from './Callout.module.css'
export type CalloutVariant =
| 'default'
| 'danger'
| 'success'
| 'info'
| 'warning'
export type CalloutDevice = 'default' | 'mobile'
export type CalloutProps = {
variant?: CalloutVariant
device?: CalloutDevice
icon?: ReactNode
children: ReactNode
className?: string
}
export function Callout({
variant = 'default',
device = 'default',
icon,
children,
className,
}: CalloutProps) {
const variantClassName = styles[variant]
const deviceClassName = device === 'mobile' ? styles.mobile : ''
// Use default icon if none provided
const iconToRender = icon ||
{children}