'use client';

import { useRouter } from 'next/navigation';
import { CardForm } from '@/components/hr/CardManagement/CardForm';
import type { CardFormData } from '@/components/hr/CardManagement/types';

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

  const handleSubmit = (data: CardFormData) => {
    // TODO: API 연동
    console.log('Create card:', data);
    router.push('/ko/hr/card-management');
  };

  return (
    <CardForm
      mode="create"
      onSubmit={handleSubmit}
    />
  );
}