Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

734 B
Raw Blame
import { LayoutDashboardIcon } from 'lucide-react';
import { lazy } from 'react';

import { createSurfaceSkeleton } from '@/components/Skeleton/Surface';
import { routeMeta } from '@/spa/router/routeMeta';

// Route metas load with the router on first paint; keep the Dashboard store out of that graph.
const DashboardDynamicMeta = lazy(() => import('./DashboardDynamicMeta'));

export const dashboardsRouteMeta = routeMeta({
  icon: LayoutDashboardIcon,
  Skeleton: createSurfaceSkeleton('grid'),
  titleKey: 'navigation.dashboard',
});

export const dashboardRouteMeta = routeMeta({
  DynamicMeta: DashboardDynamicMeta,
  icon: LayoutDashboardIcon,
  Skeleton: createSurfaceSkeleton('grid'),
  titleKey: 'navigation.dashboard',
});