import { PresenceForm } from '@/components/owner/owner-forms';
import { getLocale, t } from '@/lib/i18n';
import { getPresenceConfig } from '@/lib/owner-presence';

export default async function OwnerPresencePage() {
  const [locale, config] = await Promise.all([getLocale(), getPresenceConfig()]);
  return (
    <div className="space-y-6">
      <div>
        <h1 className="text-2xl font-semibold">{t(locale, 'owner.presence.title')}</h1>
        <p className="text-sm text-muted-foreground">{t(locale, 'owner.presence.subtitle')}</p>
      </div>
      <PresenceForm initialValue={config} />
    </div>
  );
}
