UNPKG

react-select-media-devices-modal

Version:
37 lines (36 loc) 1.7 kB
import React from 'react'; import DeviceList from '../components/deviceList'; interface SelectMediaDevicesPreviewModalProps { 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; deviceSelectContainer?: React.CSSProperties; preview?: React.CSSProperties; previewVideo?: 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 SelectMediaDevicesPreviewModal: ({ isSelectAudioInput, isSelectAudioOutput, isSelectVideoInput, open, audioInputDeviceLabel, audioOutputDeviceLabel, videoInputDeviceLabel, confirmButtonText, cancelButtonText, allowOutsideClick, style: styleProps, onDeviceSelected, onDeviceSelectCanceled, }: SelectMediaDevicesPreviewModalProps) => React.JSX.Element; export default SelectMediaDevicesPreviewModal;