mirror of https://github.com/msgbyte/tailchat
refactor(web): common title and create group panel
parent
b96aa27152
commit
9a3a0868ac
@ -0,0 +1,15 @@
|
|||||||
|
import React from 'react';
|
||||||
|
|
||||||
|
interface FullModalCommonTitleProps {
|
||||||
|
extra?: React.ReactNode;
|
||||||
|
}
|
||||||
|
export const FullModalCommonTitle: React.FC<FullModalCommonTitleProps> =
|
||||||
|
React.memo((props) => {
|
||||||
|
return (
|
||||||
|
<div className="text-xl font-bold mb-4 flex justify-between">
|
||||||
|
<div>{props.children}</div>
|
||||||
|
<div>{props.extra}</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
});
|
||||||
|
FullModalCommonTitle.displayName = 'FullModalCommonTitle';
|
@ -0,0 +1,14 @@
|
|||||||
|
import React from 'react';
|
||||||
|
import { t } from 'tailchat-shared';
|
||||||
|
import { ModalWrapper } from '../Modal';
|
||||||
|
|
||||||
|
export const ModalCreateGroupPanel: React.FC<{
|
||||||
|
groupId: string;
|
||||||
|
}> = React.memo((props) => {
|
||||||
|
return (
|
||||||
|
<ModalWrapper title={t('创建群组面板')}>
|
||||||
|
创建群组面板: {props.groupId}
|
||||||
|
</ModalWrapper>
|
||||||
|
);
|
||||||
|
});
|
||||||
|
ModalCreateGroupPanel.displayName = 'ModalCreateGroupPanel';
|
Loading…
Reference in New Issue