This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { mutate } from "swr"; | |
import { Widget } from "@uploadcare/react-widget"; | |
import { Drive } from "../types"; | |
export default function Uploader({ drive }: { drive: Drive }) { | |
if (drive.provider === "uploadcare") { | |
return ( | |
<> | |
<label>Upload a file: </label> | |
<Widget |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import isEmpty from "lodash/isEmpty"; | |
import List from "@material-ui/core/List"; | |
import { Item, File } from "../types"; | |
import FileItem from "./FileItem"; | |
import FolderItem from "./FolderItem"; | |
import Placeholder from "./Placeholder"; | |
export default function ItemList({ data }: { data: Item[] }) { | |
if (isEmpty(data)) { | |
return ( |
OlderNewer