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

// Initialize i18n
import './i18n';

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

export default plugin;
