-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathSummaryCard.tsx
More file actions
60 lines (56 loc) · 1.6 KB
/
SummaryCard.tsx
File metadata and controls
60 lines (56 loc) · 1.6 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
59
60
import { Card, CardContent } from '@/components/ui/card'
import CopyDid from '@/config/CopyDid'
import { JSX } from 'react'
interface IProps {
schemaName: string
version: string
credDefId?: string
schemaId: string
hideCredDefId?: boolean
}
const SummaryCard = ({
schemaName,
version,
credDefId,
schemaId,
}: Readonly<IProps>): JSX.Element => (
<Card className="my-6">
<CardContent className="p-6">
<div className="flex items-start justify-between">
<div>
<h5 className="text-xl leading-none font-bold dark:text-white">
{schemaName}
</h5>
<div className="mb-4 dark:text-white">
<b>Version</b>: {version}
</div>
</div>
</div>
<div className="issuance min-w-0 flex-1">
<div className="relative flex truncate break-all dark:text-white">
<span className="mr-2 font-semibold">
<b>Schema ID:</b>{' '}
</span>
<span className="w-schema-id flex">
<CopyDid
value={schemaId || ''}
className="font-courier mt-[2px] truncate"
/>
</span>
</div>
<div className="flex truncate break-all dark:text-white">
<span className="mr-2 font-semibold">
<b>Credential Definition:</b>{' '}
</span>
<span className="w-cred-id flex">
<CopyDid
value={credDefId || ''}
className="font-courier mt-[2px] truncate"
/>
</span>
</div>
</div>
</CardContent>
</Card>
)
export default SummaryCard