/** @jsx jsx */ import { jsx, Box, Flex } from "theme-ui" import { Container, Card, CardContent, Typography, CardActions, Button, makeStyles, AppBar, Tabs, Tab, Input } from "@material-ui/core" import Dropzone from "../src/components/Dropzone" import { useState } from "react" import { TabPanel } from "../src/components/TabPanel" import * as R from "ramda" const Index = () => { const [value, setValue] = useState(1) const [linkfileUrl, setInput] = useState("") const handleChange = (event, newValue) => { setValue(newValue) } const directView = () => { const removeHead = R.compose(R.tail, R.split("sia://")) const hash = removeHead(linkfileUrl)[0] if (window) { var win = window.open(`/direct/${hash}`, "_blank") win.focus() } } return ( <> Sia Skynet

Download a file by pasting in a Sia linkfile below:

setInput(e.target.value)} sx={{ width: "100%" }} />
) } export default Index