'use client';

import { useRouter } from 'next/navigation';
import { EmployeeForm } from '@/components/hr/EmployeeManagement/EmployeeForm';
import type { EmployeeFormData } from '@/components/hr/EmployeeManagement/types';

export default function EmployeeNewPage() {
  const router = useRouter();

  const handleSave = (data: EmployeeFormData) => {
    // TODO: API 연동
    console.log('Save new employee:', data);
    router.push('/ko/hr/employee-management');
  };

  return <EmployeeForm mode="create" onSave={handleSave} />;
}