import React, { useState, useEffect } from 'react'; import { Label, Input, Modal, ModalHeader, ModalBody, ModalButtonGroup, ModalButton, } from 'amazon-chime-sdk-component-library-react'; export const JoinSubChannelModel = ({ onClose, channel, joinSubChannel }) => { const [subChannelId, setSubChannelId] = useState(""); const onSubChannelIdChange = (e) => { setSubChannelId(e.target.value); }; return (
onSubChannelIdChange(e)} />
{ joinSubChannel(subChannelId); }} variant="primary" closesModal />, , ]} />
); }; export default JoinSubChannelModel;