import { atom } from "jotai";
import Artyom from "artyom.js";

export const rollsAtom = atom([]);
export const grnsAtom = atom([]);
export const searchAtom = atom("");
export const VoiceAssistAtom = atom(new Artyom());
export const CurrentRollAtom = atom({
    id: 1,
    name: "",
    supplierName: "",
    description: "",
    image: "",
    stock: 0,
    widthBefore: 0,
    widthAfter: 0,
    shrinkage: 0,
    created_at: "",
    updated_at: "",
});
export const CurrentGRNAtom = atom({
    GRN: "",
    quantity: "",
    fabricDescription: "",
    itemDescription: "",
    fabricForm: "",
    POWidth: 0,
    POUOM: "",
    PointsUOM: "",
    Tolarence: 20.0,
    color: "",
    buyer: "",
    supplier:"",
    item:"",
    supplierName:"",
    PCH:"",
    invoice:"",
    fabricOdour:"",
    PO:"",
    basicUOM:"",
    Warehouse:"",
    convFactor:"",
    created_at: "",
    updated_at: "",
});
export const TranscribeAtom = atom([]);
