/* eslint-disable */ // @ts-nocheck import { useTranslation } from "react-i18next"; import { capitalize } from "lodash-es"; import { Label, LabelGroup, Popover, Text, TextContent, TextList, TextListItem, TextListItemVariants, TextListVariants, } from "../../../shared/@patternfly/react-core"; type AuthorizationScopesDetailsProps = { row: { resourceType: string; associatedScopes?: { name: string }[]; }; }; export const AuthorizationScopesDetails = ({ row, }: AuthorizationScopesDetailsProps) => { const { t } = useTranslation(); const associatedScopes = row.associatedScopes || []; return ( {associatedScopes.map((scope, index) => ( {t("authorizationScopeDetailsTitle")} {t("authorizationScopeDetailsSubtitle")} {t("authorizationScopeDetailsName")} {capitalize(scope.name)} {t("authorizationScopeDetailsDescription")} {" "} {t(`authorizationScope.${row.resourceType}.${scope.name}`)} } > ))} ); };