-
Notifications
You must be signed in to change notification settings - Fork 180
/
Copy pathindex.tsx
60 lines (56 loc) · 1.51 KB
/
index.tsx
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 { Trans, useTranslation } from 'react-i18next'
import {
ALIGN_CENTER,
COLORS,
DIRECTION_COLUMN,
Flex,
Link,
SPACING,
StyledText,
TYPOGRAPHY,
} from '@opentrons/components'
import { LINK_BUTTON_STYLE } from '../../atoms'
import { getYearFromDate } from './utils'
const PRIVACY_POLICY_URL = 'https://opentrons.com/privacy-policy'
const EULA_URL = 'https://opentrons.com/eula'
export function EndUserAgreementFooter(): JSX.Element {
const { t } = useTranslation('shared')
return (
<Flex
backgroundColor={COLORS.grey10}
padding={SPACING.spacing24}
width="100%"
alignItems={ALIGN_CENTER}
flexDirection={DIRECTION_COLUMN}
gridGap={SPACING.spacing8}
>
<StyledText desktopStyle="captionRegular">
<Trans
i18nKey="privacy_policy"
t={t}
components={{
privacyPolicyLink: (
<Link
external
href={PRIVACY_POLICY_URL}
textDecoration={TYPOGRAPHY.textDecorationUnderline}
css={LINK_BUTTON_STYLE}
/>
),
EULALink: (
<Link
external
href={EULA_URL}
textDecoration={TYPOGRAPHY.textDecorationUnderline}
css={LINK_BUTTON_STYLE}
/>
),
}}
/>
</StyledText>
<StyledText desktopStyle="captionRegular">
{t('copyright', { year: getYearFromDate() })}
</StyledText>
</Flex>
)
}