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