-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathLayout.tsx
More file actions
30 lines (27 loc) · 1.03 KB
/
Layout.tsx
File metadata and controls
30 lines (27 loc) · 1.03 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
import { Outlet } from 'react-router-dom'
import { Container } from '@iqss/dataverse-design-system'
import styles from './Layout.module.scss'
import { FooterFactory } from './footer/FooterFactory'
import TopBarProgressIndicator from './topbar-progress-indicator/TopbarProgressIndicator'
import { HeaderFactory } from './header/HeaderFactory'
import { HistoryTrackerProvider } from '@/router/HistoryTrackerProvider'
export function Layout() {
return (
<HistoryTrackerProvider>
<TopBarProgressIndicator />
{HeaderFactory.create()}
{/* <div className="alert alert-warning rounded-0" role="alert">
<div className="container">
You are using the new Dataverse <strong>Modern version</strong>. This is an early release and
some features from the original site are not yet available.
</div>
</div> */}
<main>
<Container className={styles['body-container']}>
<Outlet />
</Container>
</main>
{FooterFactory.create()}
</HistoryTrackerProvider>
)
}