'use client';

import { useRouter } from 'next/navigation';
import ApvreqForm from '@/components/tam/ApvreqForm';

export default function Tam0020WritePage() {
  const router = useRouter();
  return (
    <div className="p-4">
      <h2 className="text-lg font-semibold mb-4">결재 신청서 작성</h2>
      <ApvreqForm onSuccess={() => router.push('/tam/0020/list')} onCancel={() => router.push('/tam/0020/list')} />
    </div>
  );
}
