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