DocSpace-client/packages/common/components/MediaViewer
2023-06-01 15:05:49 +03:00
..
helpers Merge branch 'develop' into branch feature/image-thumbnail 2023-06-01 14:30:06 +03:00
StyledComponents Web:Viewer Fixed navigation button 2023-04-29 21:53:05 +05:00
sub-components Web:Client: add flag to enable or disable image thumbnails 2023-06-01 15:05:49 +03:00
types Web:Viewer Added context menu 2023-05-15 12:34:25 +05:00
index.tsx Fix UselessModuleTranslationKeysTest issue (key: Copy) 2023-05-15 16:34:09 +04:00
MediaViewer.props.ts Web:Viewer Added context menu 2023-05-15 12:34:25 +05:00
MediaViewer.stories.js Web: Moved all clients app to packages directory 2022-07-22 22:01:25 +03:00
README.md Web: Moved all clients app to packages directory 2022-07-22 22:01:25 +03:00

MediaViewer

Used to open media files

Usage

import MediaViewer from "@docspace/common/components/MediaViewer";
<MediaViewer
  allowConvert={allowConvert}
  canDelete={canDelete}
  visible={visible}
  playlist={playlist}
  onDelete={onDelete}
  onDownload={onDownload}
  onClose={onClose}
  extsMediaPreviewed={extsMediaPreviewed}
  extsImagePreviewed={extsImagePreviewed}
/>

Properties

Props Type Required Values Default Description
allowConvert bool true
visible bool false
canDelete function
playlist array
onDelete function
onDownload function
onClose function
extsMediaPreviewed array
extsImagePreviewed array