'use client';

/**
 * 레거시 리다이렉트: /quality/equipment-repairs/new → ?mode=new
 */

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

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

  useEffect(() => {
    router.replace('/quality/equipment-repairs?mode=new');
  }, [router]);

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