'use client';

/**
 * 차량일지 수정 페이지 → 상세 페이지로 리다이렉트
 */

import { useEffect } from 'react';
import { useParams, useRouter } from 'next/navigation';

export default function VehicleLogEditPage() {
  const params = useParams();
  const id = params.id as string;
  const router = useRouter();

  useEffect(() => {
    router.replace(`/vehicle-management/vehicle-log/${id}?mode=edit`);
  }, [id, router]);

  return (
    <div className="flex items-center justify-center min-h-[400px]">
      <div className="text-muted-foreground">리다이렉트 중...</div>
    </div>
  );
}
