UNPKG

ato-product-card

Version:

This is a test package for deployment on NPM

16 lines (15 loc) 513 B
import { Product, onChangeArgs, InitialValues } from '../interfaces/interfaces'; interface useProductArgs { initialValues?: InitialValues; product: Product; value?: number; onChange?: (args: onChangeArgs) => void; } export declare const useProduct: ({ initialValues, product, value, onChange, }: useProductArgs) => { counter: number; increaseBy: (value: number) => void; reset: () => void; isMaxCountReached: boolean; maxCount: number | undefined; }; export {};