22 lines
505 B
TypeScript
22 lines
505 B
TypeScript
import { useSearchParams } from "react-router-dom";
|
|||
|
|
import BatchForm from "../../components/BatchForm";
|
||
|
|
|
||
|
|
export default function BatchNumberDetails() {
|
||
|
|
const [searchParams] = useSearchParams();
|
||
|
|
const batchId = searchParams.get("code");
|
||
|
|
|
||
|
|
if (!batchId) {
|
||
|
|
return (
|
||
|
|
<div className="p-4 text-xs text-[var(--color-error)]">
|
||
|
|
No se especificó un lote para editar.
|
||
|
|
</div>
|
||
|
|
);
|
||
|
|
}
|
||
|
|
|
||
|
|
return (
|
||
|
|
<BatchForm
|
||
|
|
batchId={batchId}
|
||
|
|
backPath="/inventario/lotes"
|
||
|
|
/>
|
||
|
|
);
|
||
|
|
}
|