import React from 'react' import Store from 'src/store' import notification from 'samples/js/helpers/notification' import { getContainer, getMessage, getTitle } from 'samples/js/helpers/randomize' import { iNotification } from 'src/typings' export default function TypeExample() { return (
Type
Type can be set from predefined values{' '} success, default,{' '} warning, info,{' '} danger or custom to suit your needs
{' '} {' '} {' '} {' '} {' '}
) } function add(type: string) { const object: Partial = {} return Store.addNotification( Object.assign(object, notification, { type, title: getTitle(type), message: getMessage(type), container: getContainer() }) ) }