import React from 'react'; import { Home, FileText } from 'lucide-react'; export interface RouteConfig { path: string; label: string; icon: React.ComponentType; component?: React.ComponentType; } export const routes: RouteConfig[] = [ { path: '/home', label: 'Home', icon: Home }, { path: '/template', label: 'Template', icon: FileText }, ]; export const getRouteByPath = (path: string): RouteConfig | undefined => routes.find(route => route.path === path); export const isValidRoute = (path: string): boolean => routes.some(route => route.path === path);