forked from deriv-com/deriv-app
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRegulationSwitcherMobile.tsx
27 lines (23 loc) · 1013 Bytes
/
RegulationSwitcherMobile.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
// TODO: Add logic to switch between EU and non-EU
import React from 'react';
import { Provider } from '@deriv/library';
import { Tab } from '@deriv/quill-design';
import { RegulationModal } from '../../modals';
import InfoIcon from '../../public/images/ic-info-outline.svg';
const RegulationSwitcherMobile = () => {
const { show } = Provider.useModal();
const activeClassName =
'aria-selected:font-bold active:font-bold aria-selected:border-b-brand-coral active:border-b-brand-coral';
return (
<div className='flex items-center gap-400'>
<InfoIcon className='h-auto w-800' onClick={() => show(<RegulationModal />)} />
<Tab.Container size='sm'>
<Tab.List>
<Tab.Trigger className={activeClassName}>Non - EU</Tab.Trigger>
<Tab.Trigger className={activeClassName}>EU</Tab.Trigger>
</Tab.List>
</Tab.Container>
</div>
);
};
export default RegulationSwitcherMobile;