import React from 'react'; import { Alert as AlertPrimitive, AlertProps as AlertPropsPrimitive } from '@modulz/primitives'; export type AlertProps = AlertPropsPrimitive & { variant?: 'red' | 'yellow' | 'blue' | 'green'; } type ExtractRefType = TypesThatMayContainReactRef extends {ref?: React.Ref} ? T : any; type PrimitiveRefType = ExtractRefType export const Alert = React.forwardRef((props, ref) => { return ( ); });