UNPKG

aleph-product-card

Version:

Este es un paquete para pruebas de despliegue NPM

17 lines (16 loc) 569 B
import { OnChangeArgs, Product } from '../interfaces/Product'; import { InitialValues } from '../components/ProductCard'; interface Props { product: Product; onChange?: ({ product, count }: OnChangeArgs) => void; value?: number; initialValues?: InitialValues; } declare const useProduct: ({ product, onChange, value, initialValues }: Props) => { counter: number; maxCount: number | undefined; isMaxCountReached: boolean; handleIncreaseBy: (updated: number) => void; onReset: () => void; }; export default useProduct;