import React from "react"; import MediaZoomInIcon from "PUBLIC_DIR/images/media.zoomin.react.svg"; import MediaZoomOutIcon from "PUBLIC_DIR/images/media.zoomout.react.svg"; import MediaRotateLeftIcon from "PUBLIC_DIR/images/media.rotateleft.react.svg"; import MediaRotateRightIcon from "PUBLIC_DIR/images/media.rotateright.react.svg"; import MediaDeleteIcon from "PUBLIC_DIR/images/media.delete.react.svg"; import MediaDownloadIcon from "PUBLIC_DIR/images/download.react.svg"; import MediaFavoriteIcon from "PUBLIC_DIR/images/favorite.react.svg"; import ViewerSeparator from "PUBLIC_DIR/images/viewer.separator.react.svg"; export const getCustomToolbar = ( onDeleteClick: VoidFunction, onDownloadClick: VoidFunction ) => { return [ { key: "zoomOut", percent: true, actionType: 2, render: (
), }, { key: "percent", actionType: 999, }, { key: "zoomIn", actionType: 1, render: (
), }, { key: "rotateLeft", actionType: 5, render: (
), }, { key: "rotateRight", actionType: 6, render: (
), }, { key: "separator download-separator", actionType: -1, noHover: true, render: (
), }, { key: "download", actionType: 102, render: (
), onClick: onDownloadClick, }, { key: "context-separator", actionType: -1, noHover: true, render: (
), }, { key: "context-menu", actionType: -1, }, { key: "delete", actionType: 103, render: (
), onClick: onDeleteClick, }, { key: "favorite", actionType: 104, render: (
), }, ]; };