-
Notifications
You must be signed in to change notification settings - Fork 12
/
ConceptContainerSummaryHorizontal.jsx
43 lines (40 loc) · 1.46 KB
/
ConceptContainerSummaryHorizontal.jsx
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
import React from 'react';
import { Link } from 'react-router-dom'
import {
LocalOffer as LocalOfferIcon,
Link as LinkIcon,
AccountTreeRounded as TreeIcon,
} from '@mui/icons-material'
import { Tooltip } from '@mui/material';
const TAG_ICON_STYLES = {width: '12px', marginRight: '4px', marginTop: '2px'}
const ConceptContainerSummaryHorizontal = props => {
return (
<div className="col-sm-3" style={{textAlign: 'right'}}>
<Link to={props.concepts_url}>
<Tooltip arrow title='Concepts'>
<span className='flex-vertical-center' style={{paddingRight: '20px', fontSize: '14px',}}>
<LocalOfferIcon fontSize='small' style={TAG_ICON_STYLES} />
{props.summary.active_concepts}
</span>
</Tooltip>
</Link>
<Link to={props.mappings_url}>
<Tooltip arrow title='Mappings'>
<span className='flex-vertical-center' style={{paddingRight: '20px', fontSize: '14px'}}>
<LinkIcon fontSize='small' style={TAG_ICON_STYLES} />
{props.summary.active_mappings}
</span>
</Tooltip>
</Link>
<Link to={props.versions_url}>
<Tooltip arrow title='Versions'>
<span className='flex-vertical-center' style={{fontSize: '14px'}}>
<TreeIcon fontSize='small' style={TAG_ICON_STYLES} />
{props.summary.versions}
</span>
</Tooltip>
</Link>
</div>
)
}
export default ConceptContainerSummaryHorizontal;