mirror of
https://github.com/hazemKrimi/crimson-quirks-ui.git
synced 2026-05-01 18:20:28 +00:00
21 lines
348 B
TypeScript
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;
|