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.
19 lines
409 B
TypeScript
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)} />
|
|
);
|
|
},
|
|
});
|