UNPKG

@redocly/theme

Version:

Shared UI components lib

25 lines (24 loc) 1.3 kB
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'; export type CatalogEntityDefaultRelationsProps = { entity: BffCatalogEntity; entitiesCatalogConfig: EntitiesCatalogConfig; catalogConfig: CatalogEntityConfig; relations: BffCatalogRelatedEntity[]; query: { fetchNextPage: () => void; isFetchingNextPage: boolean; }; searchQuery: string; setSearchQuery: (query: 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; shouldShowHeading?: boolean; listType?: ListType; }; export declare function CatalogEntityDefaultRelations({ entity, relations, query, searchQuery, setSearchQuery, entitiesCatalogConfig, catalogConfig, sortOption, setSortOption, handleSortClick, isColumnSorted, shouldShowLoadMore, shouldShowHeading, listType, }: CatalogEntityDefaultRelationsProps): JSX.Element;