@commercelayer/react-components
Version:
The Official Commerce Layer React Components
15 lines (14 loc) • 648 B
TypeScript
import type { ConditionalElement } from '../../typings/index';
import { type TGenericChildrenProps, type TResources } from '../utils/GenericFieldComponent';
import type { JSX } from "react";
type ParcelLineItemFieldChildrenProps = TGenericChildrenProps<TResources['ParcelLineItem']>;
type TCondition = ConditionalElement<Exclude<TResources['ParcelLineItem'], 'resource'>>;
type Props = {
children?: (props: ParcelLineItemFieldChildrenProps) => JSX.Element;
} & TCondition;
/**
* @param props {@link Props}
* @returns
*/
export declare function ParcelLineItemField<P extends Props>(props: P): JSX.Element;
export default ParcelLineItemField;