import { cx } from '@/styled-system/css' import { alert, type AlertVariantProps } from '@/styled-system/recipes/alert' import { type MergeOmitting } from '@/types/utilities' import { faTimes } from '@fortawesome/free-solid-svg-icons/faTimes' import { FontAwesomeIcon, type FontAwesomeIconProps } from '@fortawesome/react-fontawesome' import { type DetailedHTMLProps, type FC, type HTMLAttributes, type ReactNode } from 'react' import IconButton, { type IconButtonProps } from './IconButton' type ComposedAlertProps = MergeOmitting, HTMLDivElement>, AlertVariantProps> const Alert: FC = ({ className, children, ...props }) => { const [alertRecipeArgs, allOtherAlertProps] = alert.splitVariantProps(props) return (
{children}
) } type ComposedAlertCloseButtonProps = MergeOmitting & { children?: ReactNode } export const AlertCloseButton: FC = ({ children, className, ...props }) => { const [alertRecipeArgs, allOtherAlertProps] = alert.splitVariantProps(props) return ( {children === undefined ? : children } ) } export default Alert