@redocly/theme
Version:
Shared UI components lib
24 lines (23 loc) • 1.23 kB
TypeScript
import { JSX } from 'react';
import type { CatalogEntityConfig, EntitiesCatalogConfig } from '@redocly/config';
import type { BffCatalogEntity, BffCatalogRelatedEntity, SortOption } from '../../../../core/types';
export type CatalogEntityTeamRelationsProps = {
entity: BffCatalogEntity;
catalogConfig: CatalogEntityConfig;
entitiesCatalogConfig: EntitiesCatalogConfig;
relations: BffCatalogRelatedEntity[];
query: {
fetchNextPage: () => void;
isFetchingNextPage: boolean;
hasNextPage: boolean;
};
searchQuery: string;
setSearchQuery: (query: string) => void;
setFilter: (filter: string) => void;
sortOption: SortOption | null;
setSortOption: (sortOption: SortOption | null) => void;
handleSortClick: (sortKey: string, direction: 'asc' | 'desc') => void;
isColumnSorted: (sortKey: string, direction: 'asc' | 'desc') => boolean;
shouldShowLoadMore: boolean;
};
export declare function CatalogEntityTeamRelations({ entity, relations, query, searchQuery, setSearchQuery, setFilter, entitiesCatalogConfig, catalogConfig, sortOption, setSortOption, handleSortClick, isColumnSorted, shouldShowLoadMore, }: CatalogEntityTeamRelationsProps): JSX.Element;