UNPKG

react-select-media-devices-modal

Version:
34 lines (33 loc) 1.54 kB
import React from 'react'; import DeviceList from '../components/deviceList'; interface SelectMediaDevicesModalProps { isSelectAudioInput?: boolean; isSelectAudioOutput?: boolean; isSelectVideoInput?: boolean; open: boolean; audioInputDeviceLabel?: string; audioOutputDeviceLabel?: string; videoInputDeviceLabel?: string; confirmButtonText?: string; cancelButtonText?: string; allowOutsideClick?: boolean; style?: { background?: React.CSSProperties; modal?: React.CSSProperties; deviceLists?: React.CSSProperties; audioInputDeviceList?: Parameters<typeof DeviceList>[0]['style']; audioOutputDeviceList?: Parameters<typeof DeviceList>[0]['style']; videoInputDeviceList?: Parameters<typeof DeviceList>[0]['style']; buttons?: React.CSSProperties; cancelButton?: React.CSSProperties; confirmButton?: React.CSSProperties; }; onDeviceSelected: (devices: { audioInput?: MediaDeviceInfo; audioOutput?: MediaDeviceInfo; videoInput?: MediaDeviceInfo; }) => void; onDeviceSelectCanceled: () => void; } declare const SelectMediaDevicesModal: ({ isSelectAudioInput, isSelectAudioOutput, isSelectVideoInput, open, audioInputDeviceLabel, audioOutputDeviceLabel, videoInputDeviceLabel, confirmButtonText, cancelButtonText, allowOutsideClick, style: styleProps, onDeviceSelected, onDeviceSelectCanceled, }: SelectMediaDevicesModalProps) => React.JSX.Element; export default SelectMediaDevicesModal;