import React from 'react'; import Box from '../../primitives/Box'; import { useThemeProps } from '../../../hooks'; import type { IAlertProps } from './types'; import { AlertContext } from './Context'; const Alert = ( { children, _text, action, ...props }: IAlertProps, ref: any ) => { const { status, variant, iconColor, textColor, ...newProps } = useThemeProps( 'Alert', props ); return ( {children} {action ? {action} : null} ); }; export default React.memo(React.forwardRef(Alert));