import { t } from "../../services/i18n"; import { useNoteBlob, useNoteLabel } from "../react/hooks"; import { TabContext } from "./ribbon-interface"; import { clearBrowserCache, formatSize } from "../../services/utils"; import Button from "../react/Button"; import { downloadFileNote, openNoteExternally } from "../../services/open"; import { ParentComponent } from "../react/react_utils"; import { useContext } from "preact/hooks"; import { FormFileUploadButton } from "../react/FormFileUpload"; import server from "../../services/server"; import toast from "../../services/toast"; export default function ImagePropertiesTab({ note, ntxId }: TabContext) { const [ originalFileName ] = useNoteLabel(note, "originalFileName"); const blob = useNoteBlob(note); const parentComponent = useContext(ParentComponent); return (