import React from "react";
import BugForm from "./bug-form";
import { useLocation } from "react-router-dom";

const EditBug = () => {
  const location = useLocation();
  const isProductionBug = location.pathname.includes("/production-bugs/");
  
  return <BugForm isEditMode={true} defaultType={isProductionBug ? "Production Bug" : undefined} />;
};

export default EditBug; 