import '~/styles/layout.scss' import { Button, Divider, Popup } from "react-vant" interface NotifyProps { visible: boolean, setVisible: Function } const Notify = (props: NotifyProps) => { const { visible, setVisible } = props const data = [ { title: '提醒', color: '#F96900', imgName: 'warn', desc: '您挂单的“生肖唐彩-狗”NFT, @Miner 出价 4,153.00 USDT' }, { title: '注册成功', color: '#11C0CB', imgName: 'register-success', desc: '恭喜,您已成功注册,9527NFT数字交易平台.' }, ] return ( setVisible(false)} position='right' style={{ height: '100%', width: '70%', borderTopLeftRadius: 20, borderBottomLeftRadius: 20, boxShadow: '8px 8px 20px 0px rgba(0, 0, 0, 0.1)' }} overlayStyle={{ backgroundColor: 'rgba(0,0,0,0.05)' }} >
消息提醒
{ data.map((item, index) => (
{item.title}
{item.desc}
)) }
setVisible(false)}>
) } export default Notify