gr-product-card
Version:
This is a package that helps import a library of a product showing the card and the main goal of this package is for tests purposes.
17 lines (16 loc) • 526 B
TypeScript
import { onChangeArgs, Product, InitialValues } from '../interfaces/interfaces';
interface Props {
counter: number;
maxCount?: number;
isMaxCountReached: boolean;
increaseBy: (amount?: number) => void;
reset: () => void;
}
interface useProductArgs {
product: Product;
onChange?: (args: onChangeArgs) => void;
value?: number;
initialValues?: InitialValues;
}
export declare const useProduct: ({ onChange, product, value, initialValues }: useProductArgs) => Props;
export {};