feat(desktop): improve torrent file integration

This commit is contained in:
Lionel DARNIS 2026-05-30 10:45:45 +02:00
parent 00b9748516
commit a1d4aab93f
12 changed files with 717 additions and 18 deletions

View file

@ -2,6 +2,7 @@ import { ReactNode, useContext, useEffect, useState } from "react";
import {
AddTorrentResponse,
ErrorDetails as ApiErrorDetails,
TorrentInput,
} from "../../api-types";
import { APIContext } from "../../context";
import { ErrorWithLabel } from "../../rqbit-web";
@ -10,7 +11,7 @@ import { Button } from "./Button";
export const UploadButton: React.FC<{
onClick: () => void;
data: string | File | null;
data: TorrentInput | null;
resetData: () => void;
children: ReactNode;
className?: string;