import { getSettings } from "@/lib/settings";
import { SettingsForm } from "@/components/admin/settings-form";

export const metadata = { title: "Настройки платформы" };

export default async function SettingsPage() {
  const settings = await getSettings();

  return (
    <div className="p-8 max-w-2xl">
      <div className="mb-6">
        <h1
          className="text-xs font-bold uppercase tracking-widest"
          style={{ color: "var(--muted-foreground)" }}
        >
          Настройки платформы
        </h1>
      </div>
      <SettingsForm initial={settings} />
    </div>
  );
}
