2023-03-06 18:48:28 +01:00
|
|
|
import React from 'react';
|
|
|
|
import { Route, Switch } from 'react-router-dom';
|
|
|
|
import Box from '../../components/ui/box';
|
2021-04-26 20:05:48 +02:00
|
|
|
|
2019-10-29 17:12:41 +01:00
|
|
|
import {
|
|
|
|
CONNECT_HARDWARE_ROUTE,
|
2023-05-03 16:04:49 +02:00
|
|
|
///: BEGIN:ONLY_INCLUDE_IN(build-mmi)
|
|
|
|
CUSTODY_ACCOUNT_ROUTE,
|
|
|
|
///: END:ONLY_INCLUDE_IN
|
2021-02-04 19:15:23 +01:00
|
|
|
} from '../../helpers/constants/routes';
|
2023-05-03 16:04:49 +02:00
|
|
|
///: BEGIN:ONLY_INCLUDE_IN(build-mmi)
|
|
|
|
import CustodyPage from '../institutional/custody';
|
|
|
|
///: END:ONLY_INCLUDE_IN
|
2021-02-04 19:15:23 +01:00
|
|
|
import ConnectHardwareForm from './connect-hardware';
|
2019-10-29 17:12:41 +01:00
|
|
|
|
2023-03-06 18:48:28 +01:00
|
|
|
export default function CreateAccountPage() {
|
|
|
|
return (
|
|
|
|
<Box className="new-account">
|
|
|
|
<Switch>
|
|
|
|
<Route
|
|
|
|
exact
|
|
|
|
path={CONNECT_HARDWARE_ROUTE}
|
|
|
|
component={ConnectHardwareForm}
|
|
|
|
/>
|
2023-05-03 16:04:49 +02:00
|
|
|
{
|
|
|
|
///: BEGIN:ONLY_INCLUDE_IN(build-mmi)
|
|
|
|
<Route exact path={CUSTODY_ACCOUNT_ROUTE} component={CustodyPage} />
|
|
|
|
///: END:ONLY_INCLUDE_IN
|
|
|
|
}
|
2023-03-06 18:48:28 +01:00
|
|
|
</Switch>
|
|
|
|
</Box>
|
|
|
|
);
|
2019-10-29 17:12:41 +01:00
|
|
|
}
|