mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
24 lines
551 B
TypeScript
24 lines
551 B
TypeScript
import { CombinedRuleGroup } from 'app/types/unified-alerting';
|
|
import React, { FC } from 'react';
|
|
import { DetailsField } from '../DetailsField';
|
|
|
|
interface Props {
|
|
group: CombinedRuleGroup;
|
|
}
|
|
|
|
const RuleDetailsFederatedSources: FC<Props> = ({ group }) => {
|
|
const sourceTenants = group.source_tenants ?? [];
|
|
|
|
return (
|
|
<DetailsField label="Tenant sources">
|
|
<>
|
|
{sourceTenants.map((tenant) => (
|
|
<div key={tenant}>{tenant}</div>
|
|
))}
|
|
</>
|
|
</DetailsField>
|
|
);
|
|
};
|
|
|
|
export { RuleDetailsFederatedSources };
|