Detail.js
1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import { Card, Center, Divider, Table, Text } from '@mantine/core';
import React from 'react';
function Detail({ filename, writer, filePath, createdDate }) {
const rows = (
<>
<tr>
<td>
<Text style={{ width: 50 }} weight={700}>
문서명
</Text>
</td>
<td>
<Text>{filename}</Text>
</td>
</tr>
<tr>
<td>
<Text weight={700}>작성자</Text>
</td>
<td>
<Text>{writer}</Text>
</td>
</tr>
<tr>
<td>
<Text weight={700}>파일 경로</Text>
</td>
<td>
<Text>{filePath}</Text>
</td>
</tr>
<tr>
<td>
<Text weight={700}>파일 생성일</Text>
</td>
<td>
<Text>{createdDate}</Text>
</td>
</tr>
</>
);
return (
<Card>
<Center>
<Text weight={700}>파일 정보</Text>
</Center>
<Divider />
<Table striped>
<thead>
<tbody>{rows}</tbody>
</thead>
</Table>
</Card>
);
}
export default Detail;