// Copyright 2020-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 import React, { useState } from 'react'; import { Modal, ModalHeader, ModalBody, ModalButtonGroup, ModalButton, Input, Label, RadioGroup, } from 'amazon-chime-sdk-component-library-react'; import './NewChannelModal.css'; import { useAuthContext } from '../../providers/AuthProvider'; const StartRecordMeetingModal = ({ isStartOpen, onClose, startRecording }) => { const [mode, setMode] = useState(1); const onModeChange = (e) => { setMode(e.target.value); }; const { member } = useAuthContext(); return ( isStartOpen && (
startRecording(e)} id="record-meeting-form">
onModeChange(e)} />
, , ]} />
) ); }; const StopRecordMeetingModal = ({ isStopOpen, onClose, stopRecording }) => { const [privacy, setPrivacy] = useState('PRIVATE'); const [mode, setMode] = useState('RESTRICTED'); const { member } = useAuthContext(); return ( isStopOpen && (
stopRecording(e)} id="record-meeting-form">
, , ]} />
) ); }; export { StartRecordMeetingModal, StopRecordMeetingModal };