-
Notifications
You must be signed in to change notification settings - Fork 48
Expand file tree
/
Copy pathFolder.tsx
More file actions
26 lines (24 loc) · 820 Bytes
/
Folder.tsx
File metadata and controls
26 lines (24 loc) · 820 Bytes
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
import React from 'react'
import $rdf from 'rdflib'
import { ResourceLink } from '../components/ResourceLink'
import { DataBrowserContext } from '../context'
export const FolderWidget: React.FC = () => {
const { podOrigin } = React.useContext(DataBrowserContext)
return (
<div className="card">
<section className="section">
<h2 className="title">Raw data</h2>
<p className="buttons">
<ResourceLink
className="button is-primary is-fullwidth is-medium"
resource={$rdf.sym(`${podOrigin}/public/`)}
>Public data</ResourceLink>
<ResourceLink
className="button is-fullwidth is-small"
resource={$rdf.sym(`${podOrigin}/private/`)}
>Private data</ResourceLink>
</p>
</section>
</div>
)
}