@open-tender/utils
Version:
A library of utils for use with Open Tender applications that utilize our cloud-based Order API.
11 lines (10 loc) • 429 B
TypeScript
import { OrderRating } from '@open-tender/types';
export declare const useOrderRating: (orderId: number, orderRating: OrderRating, updateRating: (id: number, data: Partial<OrderRating>) => void) => {
rating: number;
handleRating: (star: number) => void;
comments: string;
handleComments: (inputComments: string) => void;
handleSubmit: (evt?: any) => void;
handleClose: () => void;
stars: number[];
};