DocSpace-client/packages/common/components/MediaViewer
2023-12-29 10:06:37 +03:00
..
helpers fix capitalization 2023-11-22 13:06:15 +04:00
StyledComponents Client: fix after rewrite to typescript 2023-12-27 17:45:22 +03:00
sub-components Shared:Constants\Enums: move from common 2023-12-29 10:06:37 +03:00
types MediaViewer Apply new breakpoints and fixed import 2023-12-06 16:47:05 +05:00
index.tsx Shared:Constants\Enums: move from common 2023-12-29 10:06:37 +03:00
MediaViewer.props.ts MErge branch 'develop' into feature/web-plugins 2023-09-21 14:30:04 +03:00
MediaViewer.stories.js Client: fix after rewrite to typescript 2023-12-27 17:45:22 +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