import * as React from 'react' import './Toasts.css' export type ToastPosition = | 'bottom left' | 'bottom right' | 'top left' | 'top right' export type ToastsProps = { position?: ToastPosition children: React.ReactNode } export class Toasts extends React.PureComponent { render(): JSX.Element { const { position = 'top right', children } = this.props const className = ['dcl', 'toasts', ...position.split(' ')] return
{children}
} }