feat:降级

This commit is contained in:
MatrixSeven
2025-09-15 18:28:16 +08:00
parent 50d30f23bf
commit 550be8bcc6
29 changed files with 1189 additions and 431 deletions

View File

@@ -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;
}