import { Processor } from "@/models/processor";

export const getProcessorIdByBarcodeId = (processorId: string, processors: Processor[]) => {
    return processors.find((processor) => processor.barcode_id === processorId) || null;
};
