diff options
Diffstat (limited to 'server/web/src/components/Alert.tsx')
-rw-r--r-- | server/web/src/components/Alert.tsx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/server/web/src/components/Alert.tsx b/server/web/src/components/Alert.tsx new file mode 100644 index 0000000..3b69cdf --- /dev/null +++ b/server/web/src/components/Alert.tsx @@ -0,0 +1,14 @@ +// @ts-nocheck +import { AlertButton, AlertButtonCross } from '../design/components/Alert.design'; +import React from 'react'; + +export const AlertTemplate = ({ style, options, message, close }) => ( + <AlertButton style={style} color={options.type} bgColor={options.type}> + {message} + {options.type === 'SUCCESS' && '!'} + {options.type === 'DANGER' && '.'} + {options.type === 'WARNING' && '.'} + {options.type === 'INFO' && '.'} + <AlertButtonCross onClick={close}>x</AlertButtonCross> + </AlertButton> +); |