2025-04-01 10:38:02 +09:00

25 lines
440 B
TypeScript

import { Icon, Text } from '@grafana/ui';
interface Props {
namespace: string;
group?: string;
}
const RuleLocation = ({ namespace, group }: Props) => {
if (!group) {
return (
<Text element="h3" variant="body">
{namespace}
</Text>
);
}
return (
<Text element="h3" variant="body">
{namespace} <Icon name="angle-right" aria-label=">" /> {group}
</Text>
);
};
export { RuleLocation };