mirror of https://github.com/msgbyte/tailchat
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
479 B
TypeScript
20 lines
479 B
TypeScript
import { regChatInputAction, openModal, Loadable } from '@capital/common';
|
|
import { createElement } from 'react';
|
|
import { Translate } from './translate';
|
|
|
|
const SendMiaoModal = Loadable(() =>
|
|
import('./SendMiaoModal').then((module) => ({
|
|
default: module.SendMiaoModal,
|
|
}))
|
|
);
|
|
|
|
// Just for reduce entry file size
|
|
import('./reg');
|
|
|
|
regChatInputAction({
|
|
label: Translate.title,
|
|
onClick: (actions) => {
|
|
openModal(createElement(SendMiaoModal, { actions }));
|
|
},
|
|
});
|