import React from "react"; import styles from "./index.less"; import { Button, notification, Divider } from "antd"; import { RadiusUpleftOutlined, RadiusUprightOutlined, RadiusBottomleftOutlined, RadiusBottomrightOutlined } from "@ant-design/icons"; const Context = React.createContext({ name: "Default" }); const Demo = () => { const [api, contextHolder] = notification.useNotification(); const openNotification = placement => { api.info({ message: `Notification ${placement}`, description: ( {({ name }) => `Hello, ${name}!`} ), placement }); }; return ( {contextHolder} ); }; export default () => (
);