mirror of
https://github.com/MatrixSeven/file-transfer-go.git
synced 2026-05-17 09:37:28 +08:00
feat:降级
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
import { useState, useCallback } from 'react';
|
||||
import { useToast } from '@/components/ui/toast-simple';
|
||||
import { useCallback, useState } from 'react';
|
||||
import { Role } from './types';
|
||||
|
||||
interface UseRoomConnectionProps {
|
||||
connect: (code: string, role: 'sender' | 'receiver') => void;
|
||||
connect: (code: string, role: Role) => void;
|
||||
isConnecting: boolean;
|
||||
isConnected: boolean;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user