textmachine/frontend/src/routes.tsx

12 lines
731 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { Navigate, type RouteObject } from 'react-router';
import { Showcase } from './showcase/Showcase';
// Один экран — один маршрут: только так экран открывается в изоляции и снимается скриншотом.
// Пополняется вместе со списком маршрутов в scripts/shot.mjs.
export const routes: RouteObject[] = [
{ path: '/', element: <Navigate to="/showcase" replace /> },
{ path: '/showcase', element: <Showcase /> },
// Тот же экран на настоящем масштабе книги: 2284 раздела и банк на 1200 терминов (Ф-12).
{ path: '/scale', element: <Showcase scale /> },
];