import React from 'react';
import { NavLink, Route, Switch } from 'react-router-dom';
import { useLocation } from 'react-router';
import { NotFound } from '@/components/elements/ScreenBlock';
import TransitionRouter from '@/TransitionRouter';
import DashboardContainer from '@/components/dashboard/DashboardContainer';
import Spinner from '@/components/elements/Spinner';
import routes from '@/routers/routes';
import blueprintRoutes from './routes';
export const NavigationLinks = () => {
return (
<>
{/* Pterodactyl routes */}
{routes.account
.filter((route) => !!route.name)
.map(({ path, name, exact = false }) => (
{name}
))}
{/* Blueprint routes */}
{blueprintRoutes.account
.filter((route) => !!route.name)
.map(({ path, name, exact = false }) => (
{name}
))}
>
);
};
export const NavigationRouter = () => {
const location = useLocation();
return (
<>
}>
{/* Pterodactyl routes */}
{routes.account.map(({ path, component: Component }) => (
))}
{/* Blueprint routes */}
{blueprintRoutes.account.map(({ path, component: Component }) => (
))}
>
);
};