'use client';

import { useRouter } from 'next/navigation';
import { BoardForm } from '@/components/board/BoardManagement/BoardForm';
import type { BoardFormData } from '@/components/board/BoardManagement/types';

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

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

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