@shopify/cli-kit
Version:
A set of utilities, interfaces, and models that are common across all the platform features
21 lines (20 loc) • 616 B
TypeScript
import { CustomListItem } from '../List.js';
import { InlineToken, TokenItem } from '../TokenizedText.js';
import { TextProps } from 'ink';
import { FunctionComponent } from 'react';
type Items = (TokenItem<InlineToken> | CustomListItem)[];
export interface InfoTableSection {
color?: TextProps['color'];
header: string;
bullet?: string;
helperText?: string;
items: Items;
emptyItemsText?: string;
}
export interface InfoTableProps {
table: {
[header: string]: Items;
} | InfoTableSection[];
}
declare const InfoTable: FunctionComponent<InfoTableProps>;
export { InfoTable };