Files
crimson-quirks-ui/src/components/Alert/index.tsx
T
2021-04-21 21:29:50 +01:00

21 lines
348 B
TypeScript

import { Wrapper } from './styles';
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;