/** * copied: https://github.com/arvinxx/dumi-theme-antd-style/tree/master/src/builtins/Container */ import * as React from 'react'; import { Alert } from 'antd'; import { type FC, type ReactNode } from 'react'; import useStyles from './style'; const Container: FC<{ type: 'info' | 'warning' | 'success' | 'error'; title?: string; children: ReactNode; }> = ({ type, title, children }) => { const { styles, cx } = useStyles(); return (
{children}
} className={styles.alert} /> ); }; export default Container;