'use client';

import { useT } from '@/lib/i18n/react';
import { SystemPageShell } from '@/features/system-page-shell/SystemPageShell';
import { SystemPage404 } from '@/features/system-pages/SystemPage404';
import type { Locale } from '@/lib/i18n';

export interface NotFoundProps {
  initialLocale: Locale;
  isGuest: boolean;
  isAdmin?: boolean;
  isVendor?: boolean;
}

export function NotFound({ initialLocale, isGuest, isAdmin, isVendor }: NotFoundProps) {
  const t = useT('seo_pages');

  return (
    <SystemPageShell
      initialLocale={initialLocale}
      isGuest={isGuest}
      isAdmin={isAdmin}
      isVendor={isVendor}
    >
      <SystemPage404
        title={t('not_found_heading')}
        body={t('not_found_body')}
        cta={t('back_to_home')}
      />
    </SystemPageShell>
  );
}
