import React, { JSX } from 'react'; import { BffCatalogEntity } from '@redocly/theme/core/types'; import { NotesIcon } from '@redocly/theme/icons/NotesIcon/NotesIcon'; import { Tag } from '@redocly/theme/components/Tag/Tag'; import { CatalogEntityPropertyCard } from '@redocly/theme/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityPropertyCard'; import { useThemeHooks } from '@redocly/theme/core/hooks'; export type FormatPropertyProps = { entity: BffCatalogEntity; }; export function FormatProperty({ entity }: FormatPropertyProps): JSX.Element { const { useTranslate } = useThemeHooks(); const { translate } = useTranslate(); return (
{translate('catalog.format.label', 'Format')} } content={ <> {entity.metadata?.specType} } hoverEffect={false} />
); }