import React from "react"; import { EditableText } from "../EditableText"; import { Panel } from "../Panel"; import { ExportType } from "../../scene/types"; import "./panelExport.scss"; interface PanelExportProps { projectName: string; onProjectNameChange: (name: string) => void; onExportCanvas: (type: ExportType) => void; exportBackground: boolean; onExportBackgroundChange: (val: boolean) => void; onSaveScene: React.MouseEventHandler; onLoadScene: React.MouseEventHandler; } // fa-clipboard const ClipboardIcon = () => ( ); const probablySupportsClipboard = "toBlob" in HTMLCanvasElement.prototype && "write" in navigator.clipboard && "ClipboardItem" in window; export const PanelExport: React.FC = ({ projectName, exportBackground, onProjectNameChange, onExportBackgroundChange, onSaveScene, onLoadScene, onExportCanvas }) => { return (
Name
{projectName && ( onProjectNameChange(name)} /> )}
Image
{probablySupportsClipboard && ( )}
Scene
); };