@open-tender/store
Version:
A library of hooks, reducers, utility functions, and types for use with Open Tender applications that utilize our in-store POS API
25 lines (24 loc) • 802 B
TypeScript
import { Order } from '@open-tender/types';
declare const useOrder: (order: Order, callback?: () => void) => {
isInPrepQueue: boolean;
isUpcoming: boolean;
itemImages: {
title: string;
imageUrl: string;
}[];
itemNames: string;
status: import("@open-tender/types").OrderStatus;
orderId: number | null;
orderPrep: import("@open-tender/types").OrderPrep | null;
orderType: import("@open-tender/types").OrderType;
orderTypeName: string | undefined;
reorder: () => void;
requestedAt: string;
revenueCenter: import("@open-tender/types").OrderRevenueCenter;
serviceType: import("@open-tender/types").ServiceType;
subtitle: string;
orderNo: string;
title: string;
total: `${number}.${number}`;
};
export default useOrder;