1. local msg/file share by webrtc fix: 1. meta clean goroutine walk error 2. clean interval to args(--clean)
18 lines
519 B
TypeScript
18 lines
519 B
TypeScript
import React from 'react';
|
|
import {Dialog} from '../../../component/dialog/dialog.tsx';
|
|
import {Sender} from './sender.tsx';
|
|
|
|
interface SendDialogProps {
|
|
open: boolean;
|
|
onSend: (msg: string, files: File[]) => void;
|
|
onClose: () => void;
|
|
name: string;
|
|
}
|
|
|
|
export const SendDialog: React.FC<SendDialogProps> = ({open, onSend, onClose, name}) => {
|
|
return (
|
|
<Dialog open={open} title={`发送消息给${name}`} onClose={onClose}>
|
|
<Sender onSend={onSend} />
|
|
</Dialog>
|
|
);
|
|
};
|