import type React from "react"; import type { Role } from "./server"; /** `nav.roles`: the shell shows the link only to signed-in users holding one of these roles (absent: everyone). */ export interface WebRoute { path: string; element: () => Promise<{ default: React.ComponentType }>; nav?: { label: string; area: "header" | "admin"; roles?: Role[] } } export interface WebFeature { name: string; routes: WebRoute[] }