INNER CODE UNIT · TypeScript

useAggregationOptions

gocrane/crane · pkg/web/src/models/index.ts:32

export const useAggregationOptions = () => {
  const { t } = useTranslation();
  return [
    {
      value: Aggregation.CLUSTER,
      text: t('集群'),
    },
    {
      value: Aggregation.NAMESPACE,
      text: t('命名空间'),
    },
    {
      value: Aggregation.NODE,
      text: t('节点'),
    },
    {
      value: Aggregation.DEPLOYMENT,
      text: 'Deployment',

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…