Add support for customizable icons in SearchResultListItemBlueprint and related components

Signed-off-by: Andreas Berger <andreas@berger-ecommerce.com>
This commit is contained in:
Andreas Berger
2025-09-25 12:40:31 +02:00
parent 8bfe82fbc6
commit a521911fbc
9 changed files with 38 additions and 8 deletions
+2
View File
@@ -55,6 +55,7 @@ import {
} from '@backstage/plugin-techdocs-react';
import { useTechdocsReaderIconLinkProps } from './hooks/useTechdocsReaderIconLinkProps';
import { DocsIcon } from '@backstage/core-components';
/** @alpha */
const techdocsEntityIconLink = EntityIconLinkBlueprint.make({
@@ -116,6 +117,7 @@ export const techDocsSearchResultListItemExtension =
},
factory(originalFactory, { config }) {
return originalFactory({
icon: <DocsIcon />,
predicate: result => result.type === 'techdocs',
component: async () => {
const { TechDocsSearchResultListItem } = await import(