import { ExclamationIcon, ShieldExclamationIcon } from '@heroicons/react/outline'; import * as React from 'react'; import classNames from 'classnames'; interface AlertProps { type: 'warning' | 'danger'; className?: string; children: React.ReactNode; } export default ({ type, className, children }: AlertProps) => { return (
{type === 'danger' ? ( ) : ( )} {children}
); };