import * as React from "react"; import * as System from "~/dist"; import { css } from "@emotion/react"; const STYLES_FILE_HIDDEN = css` height: 1px; width: 1px; opacity: 0; visibility: hidden; position: fixed; top: -1px; left: -1px; `; export default class SlateReactSystemPage extends React.Component { async componentDidMount() { const url = "/api/v1/get"; const response = await fetch(url, { headers: { Authorization: "Basic SLA85621d2d-1bc1-4c35-9e3a-1e43689c155fTE", }, }); const json = await response.json(); } _handleUpload = async (e) => { e.persist(); const url = "https://uploads.slate.host/api/public/--"; let file = e.target.files[0]; let data = new FormData(); data.append("data", file); const response = await fetch(url, { method: "POST", headers: { Authorization: "Basic --", }, body: data, }); const json = await response.json(); }; render() { return (