@redocly/theme
Version:
Shared UI components lib
27 lines (26 loc) • 1.43 kB
TypeScript
import { JSX } from 'react';
import type { CatalogEntityConfig, EntitiesCatalogConfig } from '@redocly/config';
import type { ListType } from '../../../../core/types';
import type { BffCatalogEntity, BffCatalogRelatedEntity, SortOption } from '../../../../core/types';
import { CatalogColumn } from '../../../../components/Catalog/CatalogTableView/CatalogTableView';
export type CatalogEntityRelationsTableProps = {
entity: BffCatalogEntity;
entitiesCatalogConfig: EntitiesCatalogConfig;
catalogConfig: CatalogEntityConfig;
relations: BffCatalogRelatedEntity[];
query: {
fetchNextPage: () => void;
isFetchingNextPage: boolean;
};
searchQuery: string;
setSearchQuery: (query: string) => void;
heading?: string;
columns: CatalogColumn<BffCatalogRelatedEntity>[];
sortOption: SortOption | null;
setSortOption: (sortOption: SortOption | null) => void;
handleSortClick: (sortKey: string, direction: 'asc' | 'desc') => void;
isColumnSorted: (sortKey: string, direction: 'asc' | 'desc') => boolean;
shouldShowLoadMore: boolean;
listType?: ListType;
};
export declare function CatalogEntityRelationsTable({ entity, entitiesCatalogConfig, catalogConfig, relations, query, searchQuery, setSearchQuery, heading, columns, setSortOption, sortOption, handleSortClick, isColumnSorted, shouldShowLoadMore, listType, }: CatalogEntityRelationsTableProps): JSX.Element;