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.
tailchat/web/plugins/com.msgbyte.draw/src/index.tsx

19 lines
409 B
TypeScript

import React from 'react';
import {
regChatInputAction,
Loadable,
openModal,
closeModal,
} from '@capital/common';
import { Translate } from './translate';
const DrawModal = Loadable(() => import('./DrawModal'));
regChatInputAction({
label: Translate.draw,
onClick: (actions) => {
const key = openModal(
<DrawModal actions={actions} onSuccess={() => closeModal(key)} />
);
},
});