Skip to content

Instantly share code, notes, and snippets.

@ljmotta
Created October 14, 2020 20:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ljmotta/5a1840ac6b493db2e4b416ae603b1cb3 to your computer and use it in GitHub Desktop.
Save ljmotta/5a1840ac6b493db2e4b416ae603b1cb3 to your computer and use it in GitHub Desktop.
Base64PngPage
import { File } from "@kogito-tooling/editor/dist/embedded";
export function Base64PngPage() {
const [file, setFile] = useState<File>({
fileName: "new-file",
fileExtension: "base64png",
getFileContents: () => Promise.resolve(""),
isReadOnly: false,
});
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment