/** @jsx jsx */ import { AppBar, Button, Card, CardContent, Container, Input, Tab, Tabs, Typography } from "@material-ui/core"; import * as R from "ramda"; import { useState } from "react"; import { Box, Flex, jsx } from "theme-ui"; import Dropzone from "../src/components/Dropzone"; import { TabPanel } from "../src/components/TabPanel"; 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