import { BarChartOutlined, EditOutlined, PlusOutlined, } from '@ant-design/icons'; import { Button, Form, Input, Modal, Table } from 'antd'; import { ColumnsType } from 'antd/es/table'; import React, { useMemo, useState } from 'react'; export const Website: React.FC = React.memo(() => { const [isModalOpen, setIsModalOpen] = useState(false); const handleOk = () => { setIsModalOpen(false); }; return (
Servers
setIsModalOpen(false)} >
); }); Website.displayName = 'Website'; interface WebsiteInfoRecordType { name: string; domain: string; } export const WebsiteList: React.FC = React.memo(() => { const dataSource: WebsiteInfoRecordType[] = [ { name: 'tianji', domain: 'tianji.msgbyte.com', }, ]; const columns = useMemo((): ColumnsType => { return [ { dataIndex: 'name', title: 'Name', }, { dataIndex: 'domain', title: 'Domain', }, { key: 'action', render: () => { return (
); }, }, ]; }, []); return ; }); WebsiteList.displayName = 'WebsiteList';