import { GeneralSettingsForm } from '@/components/settings/general-settings-form';
import { getGuildGeneralSettings } from '@/lib/guild-settings';

interface SettingsPageProps {
  params: Promise<{ guildId: string }>;
}

export default async function GuildSettingsPage({ params }: SettingsPageProps) {
  const { guildId } = await params;
  const settings = await getGuildGeneralSettings(guildId);

  return <GeneralSettingsForm guildId={guildId} initialSettings={settings} />;
}
