import { Accessibility } from '../../types'; import { alertWarningBehavior } from './alertWarningBehavior'; import { alertBaseBehavior } from './alertBaseBehavior'; /** * @description * Uses `alertWarningBehavior` for 'danger' and 'warning' variants. */ export const alertBehavior: Accessibility = props => props.warning || props.danger ? alertWarningBehavior(props) : alertBaseBehavior(props); export type AlertBehaviorProps = { warning?: boolean; danger?: boolean; bodyId?: string; };