'use client';

import Link from 'next/link';
import { useTranslations } from 'next-intl';
import { ArrowLeft } from 'lucide-react';
import { Button } from '@/components/ui/button';
import { PageTransition } from '@/components/layout/page-transition';
import { EmployeeForm } from '@/components/hr/employees';

interface NewEmployeeContentProps {
  locale: string;
}

/**
 * New employee page content
 * Displays employee creation form
 */
export function NewEmployeeContent({ locale }: NewEmployeeContentProps) {
  const t = useTranslations('hr');

  return (
    <PageTransition>
      <div className="space-y-6">
        {/* Header */}
        <div className="flex items-center gap-4">
          <Link href={`/${locale}/hr/employees`}>
            <Button variant="ghost" size="icon">
              <ArrowLeft className="h-4 w-4" />
            </Button>
          </Link>
          <div>
            <h1 className="text-3xl font-bold tracking-tight">
              {t('employees.new')}
            </h1>
            <p className="text-muted-foreground">{t('employees.newSubtitle')}</p>
          </div>
        </div>

        {/* Form */}
        <EmployeeForm locale={locale} mode="create" />
      </div>
    </PageTransition>
  );
}
