RuleDetailsFederatedSources.tsx 553 B

12345678910111213141516171819202122232425
  1. import React, { FC } from 'react';
  2. import { CombinedRuleGroup } from 'app/types/unified-alerting';
  3. import { DetailsField } from '../DetailsField';
  4. interface Props {
  5. group: CombinedRuleGroup;
  6. }
  7. const RuleDetailsFederatedSources: FC<Props> = ({ group }) => {
  8. const sourceTenants = group.source_tenants ?? [];
  9. return (
  10. <DetailsField label="Tenant sources">
  11. <>
  12. {sourceTenants.map((tenant) => (
  13. <div key={tenant}>{tenant}</div>
  14. ))}
  15. </>
  16. </DetailsField>
  17. );
  18. };
  19. export { RuleDetailsFederatedSources };