import * as React from 'react'; import { ComponentClassNames } from '../shared/constants'; import { AlertVariations } from '../types'; import { IconInfo, IconError, IconWarning, IconCheckCircle, } from '../Icon/internal'; interface AlertIconProps { variation?: AlertVariations; ariaHidden?: boolean; } /** * @internal For internal Amplify UI use only. May be removed in a future release. */ export const AlertIcon: React.FC = ({ variation, ariaHidden, }) => { switch (variation) { case 'info': return ( ); case 'error': return ( ); case 'warning': return ( ); case 'success': return ( ); default: return null; } }; AlertIcon.displayName = 'AlertIcon';