import { useState } from "react"; import { useLocalStorage } from "react-use"; import { Button } from "./core/Button"; import { VStack } from "./core/Stacks"; import { SelectFile } from "./SelectFile"; interface Props { importData: (filePath: string) => Promise; } export function ImportDataDialog({ importData }: Props) { const [isLoading, setIsLoading] = useState(false); const [filePath, setFilePath] = useLocalStorage("importFilePath", null); return (
  • OpenAPI 3.0, 3.1
  • Postman Collection v2, v2.1
  • Insomnia v4+
  • Swagger 2.0
  • Curl commands (or paste into URL)
setFilePath(filePath)} /> {filePath && ( )}
); }