@react-pakistan/react-ui-collection
Version:
React UI Collection built upon React Storybook
39 lines (38 loc) • 798 B
TypeScript
import { ReactText } from 'react';
export interface IHeaderItem {
[key: string]: string;
}
export interface IBodyItem {
altImage: string;
id: string;
imageUrl: string;
justify: string;
price: number;
priceCurrency: string;
productTitle: string;
quantity: number;
size: string;
sku: string;
}
export interface ICartSummaryProps {
/**
* Heading text property for H4 component
*/
topHeadingH4: ReactText;
/**
* Array of Header items
*/
headerItems: Array<IHeaderItem>;
/**
* Array of Body items
*/
bodyItems: Array<IBodyItem>;
/**
* Text property for Back Button component
*/
backButton: string;
/**
* Text property for Next Button component
*/
nextButton: string;
}