2024-01-06 17:07:18 -05:00
|
|
|
import React from 'react';
|
|
|
|
import NavigationBar from '@/components/NavigationBar';
|
|
|
|
import SubNavigation from '@/components/elements/SubNavigation';
|
|
|
|
import { useLocation } from 'react-router';
|
|
|
|
|
2024-01-21 16:01:48 -05:00
|
|
|
import { NavigationLinks, NavigationRouter } from '@/blueprint/extends/routers/DashboardRouter';
|
2024-09-05 05:17:11 -04:00
|
|
|
import BeforeSubNavigation from '@/blueprint/components/Navigation/SubNavigation/BeforeSubNavigation';
|
|
|
|
import AdditionalAccountItems from '@/blueprint/components/Navigation/SubNavigation/AdditionalAccountItems';
|
|
|
|
import AfterSubNavigation from '@/blueprint/components/Navigation/SubNavigation/AfterSubNavigation';
|
2024-01-06 17:07:18 -05:00
|
|
|
|
|
|
|
export default () => {
|
|
|
|
const location = useLocation();
|
|
|
|
|
|
|
|
return (
|
|
|
|
<>
|
|
|
|
<NavigationBar />
|
|
|
|
{location.pathname.startsWith('/account') && (
|
2024-04-10 14:35:11 -04:00
|
|
|
<SubNavigation id={'SubNavigation'}>
|
2024-01-06 17:07:18 -05:00
|
|
|
<BeforeSubNavigation />
|
|
|
|
<div>
|
2024-01-21 16:01:48 -05:00
|
|
|
<NavigationLinks />
|
2024-01-06 17:07:18 -05:00
|
|
|
<AdditionalAccountItems />
|
|
|
|
</div>
|
|
|
|
<AfterSubNavigation />
|
|
|
|
</SubNavigation>
|
|
|
|
)}
|
2024-01-21 16:01:48 -05:00
|
|
|
<NavigationRouter />
|
2024-01-06 17:07:18 -05:00
|
|
|
</>
|
|
|
|
);
|
|
|
|
};
|