You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
455 B
25 lines
455 B
import { Table, Typography } from "antd"; |
|
|
|
const { Title } = Typography; |
|
|
|
export default function KeyValueTable({ title, data }) { |
|
const columns = [ |
|
{ |
|
title: "Name", |
|
dataIndex: "name", |
|
key: "name", |
|
}, |
|
{ |
|
title: "Value", |
|
dataIndex: "value", |
|
key: "value", |
|
}, |
|
]; |
|
|
|
return ( |
|
<div> |
|
<Title>{title}</Title> |
|
<Table pagination={false} columns={columns} dataSource={data} /> |
|
</div> |
|
); |
|
}
|
|
|