Files
chat/client/web/plugins/com.msgbyte.music/src/index.tsx
2026-04-25 16:36:34 +08:00

21 lines
541 B
TypeScript

import { regCustomPanel } from '@capital/common';
import { Loadable } from '@capital/component';
import { Translate } from './translate';
const PLUGIN_ID = 'com.msgbyte.music';
console.log(`Plugin ${PLUGIN_ID} is loaded`);
regCustomPanel({
position: 'navbar-more',
icon: 'mdi:disc-player',
name: `${PLUGIN_ID}/musicpanel`,
label: Translate.musicpanel,
render: Loadable(
() => import('./panels/MusicPanel').then((module) => module.MusicPanel),
{
componentName: `${PLUGIN_ID}:CustomMusicPanelRender`,
}
),
});