summaryrefslogtreecommitdiff
path: root/server/web/src/components/Alert.tsx
blob: 3b69cdfc5894cbd639550efba6d88d446858066b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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>
);