mirror of
https://github.com/datahub-project/datahub.git
synced 2025-09-14 19:51:39 +00:00
34 lines
1.0 KiB
TypeScript
34 lines
1.0 KiB
TypeScript
import React from 'react';
|
|
|
|
import { useEntityData } from '@app/entity/shared/EntityContext';
|
|
import { SearchCardContext } from '@app/entityV2/shared/SearchCardContext';
|
|
import { EmbeddedListSearchSection } from '@app/entityV2/shared/components/styled/search/EmbeddedListSearchSection';
|
|
import { UnionType } from '@app/searchV2/utils/constants';
|
|
|
|
export function ApplicationEntitiesTab() {
|
|
const { urn } = useEntityData();
|
|
|
|
const fixedOrFilters = [
|
|
{
|
|
field: 'applications',
|
|
values: [urn],
|
|
},
|
|
];
|
|
|
|
return (
|
|
<SearchCardContext.Provider value={{ showRemovalFromList: true }}>
|
|
<EmbeddedListSearchSection
|
|
fixedFilters={{
|
|
unionType: UnionType.OR,
|
|
filters: fixedOrFilters,
|
|
}}
|
|
emptySearchQuery="*"
|
|
placeholderText="Filter assets..."
|
|
skipCache
|
|
applyView
|
|
shouldRefetch
|
|
/>
|
|
</SearchCardContext.Provider>
|
|
);
|
|
}
|