import { BuildFooter } from './BuildFooter' import { NavLink, Navigate, Route, Routes, useLocation, useParams } from 'react-router-dom' import { SourceButton, ThemeToggle } from '@shared/ui' import { Compare } from './pages/Compare' import { Line } from './pages/Line' import { Overview } from './pages/Overview' function LineRoute() { const { id } = useParams() return } export function App() { const location = useLocation() const ipv6 = location.pathname.endsWith('~ipv6') || new URLSearchParams(location.search).get('ip_version') === 'ipv6' const familyQuery = ipv6 ? '?ip_version=ipv6' : '' return ( <>
} /> } /> } /> } /> ) }