import { MessageColor } from '@utils/Constants' import Markdown from './Markdown' const Message: React.FC = ({ type, children }) => { return (
{typeof children === 'string' ? : children}
) } interface MessageProps { type?: 'success' | 'error' | 'warning' | 'info' children: JSX.Element | JSX.Element[] | string } export default Message