front-npm-react-advanced
Version:
Este es un paquete de pruebas de despliegue en NPM
15 lines (14 loc) • 683 B
TypeScript
import React, { CSSProperties } from 'react';
import { ProductContextProps, Product, OnChangesArgs, InitialValues, ProductCardHandlers } from '../interfaces/interfaces';
export interface Props {
product: Product;
className?: string;
style?: CSSProperties;
onChange?: ({ product, count }: OnChangesArgs) => void;
value?: number;
children: (args: ProductCardHandlers) => JSX.Element;
initialValues?: InitialValues;
}
export declare const ProductContext: React.Context<ProductContextProps>;
declare const ProductCard: ({ product, children, className, style, onChange, value, initialValues, }: Props) => JSX.Element;
export default ProductCard;