import { useTranslation } from 'react-i18next';
import type { ConsolePluginMetadata } from '@console/dynamic-plugin-sdk';
import { NamespacePauseAction } from './components/NamespacePauseAction';

// Initialize i18n
import './i18n';

const pluginMetadata: ConsolePluginMetadata = {
  name: 'project-pause-plugin',
  type: 'console.action/provider',
  properties: {
    contextId: 'namespace',
    provider: () => [
      {
        id: 'pause-namespace',
        label: 'Pause Project',
        component: NamespacePauseAction,
      },
    ],
  },
};

export default pluginMetadata;
