import React, { FC } from 'react'; import { Icon } from '@grafana/ui'; interface RuleLocationProps { namespace: string; group?: string; } const RuleLocation: FC = ({ namespace, group }) => { if (!group) { return <>{namespace}; } return ( <> {namespace} {group} ); }; export { RuleLocation };