import { useState } from 'react' import { Table } from 'antd' import { PermButton } from '../../components/PermButton' import UserFormDrawer from './UserFormDrawer' export default function UserListPage() { const [drawerOpen, setDrawerOpen] = useState(false) return (
setDrawerOpen(true)} > 新增
setDrawerOpen(false)} onSuccess={() => setDrawerOpen(false)} /> ) }