/** @jsx jsx */ import { AppBar, Button, Card, CardContent, Container, Input, Link, 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(`/${hash}`, "_blank") win.focus() } } return ( <> Sia Skynet Statistics About Sia Download a file by pasting in a Sia linkfile below: setInput(e.target.value)} sx={{ width: "100%" }} /> Download > ) } export default Index
Download a file by pasting in a Sia linkfile below: