UNPKG

@commercelayer/react-components

Version:
18 lines (17 loc) 624 B
import { type JSX } from 'react'; import type { LineItem } from '@commercelayer/sdk'; import type { ChildrenFunction } from '../../typings/index'; import type { TLineItem } from './LineItem'; export interface TLineItemImage extends Omit<Props, 'children'> { src: string; lineItem: LineItem; } type Props = { children?: ChildrenFunction<TLineItemImage>; width?: number; placeholder?: { [K in TLineItem]?: string; }; } & Omit<JSX.IntrinsicElements['img'], 'src' | 'srcSet' | 'placeholder'>; export declare function LineItemImage(props: Props): JSX.Element | null; export default LineItemImage;