import {IconAlertCircle} from "@douyinfe/semi-icons";
import React from "react";

import './style.less'

type AlertProps = {
	message: React.ReactNode;
}

function Alert(props: AlertProps) {
	if(!props.message) return null;
	return <div className={'alert-container'}>
		<IconAlertCircle/>
		<span className={'alert-text'}>{props.message}</span>
	</div>
}

export default Alert