import TerminalBox from "./components/TerminalBox"; import { getRouteTree, RouteNode } from "../lib/routeTree"; export default function Home() { const routes = getRouteTree(); function renderTree(nodes: RouteNode[], depth = 0) { return nodes.map((node, i) => (
{depth === 0 ? "├── " : "│ ".repeat(depth) + "└── "} {node.name}
{node.children && renderTree(node.children, depth + 1)}
)); } return (
{renderTree(routes)}
); }