Complete alert component

This commit is contained in:
Hazem Krimi
2021-04-21 21:29:50 +01:00
parent ae185cfcc5
commit 69bb70e52a
3 changed files with 88 additions and 4 deletions
+15 -2
View File
@@ -1,7 +1,20 @@
import { Wrapper } from './styles';
const Alert = () => {
return <Wrapper></Wrapper>;
type AlertProps = {
className?: string;
color:
| 'client'
| 'productOwner'
| 'developer'
| 'admin'
| 'success'
| 'warning'
| 'error';
text: string;
};
const Alert = ({ text, ...props }: AlertProps) => {
return <Wrapper {...props}>{text}</Wrapper>;
};
export default Alert;