-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathDetails.js
More file actions
40 lines (36 loc) · 1.05 KB
/
Details.js
File metadata and controls
40 lines (36 loc) · 1.05 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
import React from 'react'
import { Tab, TabList, TabPanel, Tabs } from 'react-tabs'
import Log from '../containers/Log'
import VastDetails from '../containers/VastDetails'
import VerificationDetails from '../containers/VerificationDetails'
import VideoDetails from '../containers/VideoDetails'
import VpaidDetails from '../containers/VpaidDetails'
const Details = ({ logOnly, vpaidEnabled, verificationEnabled }) => (
<div className="details">
<Tabs>
<TabList>
<Tab>Log</Tab>
<Tab disabled={logOnly}>VAST</Tab>
<Tab disabled={logOnly || !vpaidEnabled}>VPAID</Tab>
<Tab disabled={logOnly}>Video</Tab>
<Tab disabled={logOnly || !verificationEnabled}>OMID</Tab>
</TabList>
<TabPanel>
<Log />
</TabPanel>
<TabPanel>
<VastDetails />
</TabPanel>
<TabPanel>
<VpaidDetails />
</TabPanel>
<TabPanel>
<VideoDetails />
</TabPanel>
<TabPanel>
<VerificationDetails />
</TabPanel>
</Tabs>
</div>
)
export default Details