import type { Metadata } from 'next';
import { DashboardClient } from './components/dashboard-client';
import { loadFullConfig } from '@/src/lib/config';
import './globals.css';

export const metadata: Metadata = {
  title: 'Homelab Dashboard',
  description: 'Live-Monitoring-Dashboard für dein Homelab',
};

export default async function Home() {
  const { appConfig, services } = await loadFullConfig();

  return <DashboardClient initialServices={services} config={appConfig} />;
}
