| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 | 
							- import React, { Component } from 'react';
 - 
 - import DesktopSourcePreview from './DesktopSourcePreview';
 - 
 - /**
 -  * React component for showing a grid of DesktopSourcePreviews.
 -  *
 -  * @extends Component
 -  */
 - class DesktopPickerPane extends Component {
 -     /**
 -      * DesktopPickerPane component's property types.
 -      *
 -      * @static
 -      */
 -     static propTypes = {
 -         /**
 -          * The handler to be invoked when a DesktopSourcePreview is clicked.
 -          */
 -         onClick: React.PropTypes.func,
 - 
 -         /**
 -          * The handler to be invoked when a DesktopSourcePreview is double
 -          * clicked.
 -          */
 -         onDoubleClick: React.PropTypes.func,
 - 
 -         /**
 -          * The id of the DesktopCapturerSource that is currently selected.
 -          */
 -         selectedSourceId: React.PropTypes.string,
 - 
 -         /**
 -          * An array of DesktopCapturerSources.
 -          */
 -         sources: React.PropTypes.array,
 - 
 -         /**
 -          * The source type of the DesktopCapturerSources to display.
 -          */
 -         type: React.PropTypes.string
 -     };
 - 
 -     /**
 -      * Implements React's {@link Component#render()}.
 -      *
 -      * @inheritdoc
 -      * @returns {ReactElement}
 -      */
 -     render() {
 -         const {
 -             onClick,
 -             onDoubleClick,
 -             selectedSourceId,
 -             sources,
 -             type
 -         } = this.props;
 - 
 -         const classNames
 -             = `desktop-picker-pane default-scrollbar source-type-${type}`;
 -         const previews
 -             = sources.map(
 -                 source =>
 -                     <DesktopSourcePreview
 -                         key = { source.id }
 -                         onClick = { onClick }
 -                         onDoubleClick = { onDoubleClick }
 -                         selected = { source.id === selectedSourceId }
 -                         source = { source }
 -                         type = { type } />);
 - 
 -         return (
 -             <div className = { classNames }>
 -                 { previews }
 -             </div>
 -         );
 -     }
 - }
 - 
 - export default DesktopPickerPane;
 
 
  |