/* eslint-disable @typescript-eslint/no-explicit-any */ import { ShipmentStatus } from "@/Constant/enums"; import { useRouter } from "next/navigation"; import React from "react"; export interface ShipmentFooterProps { step: number; handleBackClick: () => void; handleNextClick: () => void; onClose: () => void; shipmentDetails: any; } const ShipmentFooter: React.FC = ({ step, handleBackClick, handleNextClick, onClose, shipmentDetails }) => { const router = useRouter(); const handleClearUrlPrams = () => router.push(`/shipments`) return ( <> {step === 1 ? (
{/* {shipmentDetails?.id} */} { e.preventDefault(); handleNextClick(); }} className="btn btn-m rounded-m delybell-primary font-700 text-uppercase flex-fill text-center" > Create Shipment & Continue
) : ( <> {shipmentDetails?.status?.id === ShipmentStatus?.Created ? (
):(
)} )} ); }; export default ShipmentFooter;