import { Plugin } from '@tachybase/client';
import PluginAuthClient from '@tachybase/module-auth/client';

import { authType } from '../constants';
import { AdminSettingsForm, SignInButton } from './components';

export class PluginWeCahtOfficialAccount extends Plugin {
  async load() {
    this.app.pm.get(PluginAuthClient).registerType(authType, { components: { SignInButton, AdminSettingsForm } });
  }
}

export default PluginWeCahtOfficialAccount;
