mirror of
https://github.com/MatrixSeven/file-transfer-go.git
synced 2026-05-13 14:47:31 +08:00
新增房间验证工具函数,包含房间代码格式验证和房间状态检查逻辑
This commit is contained in:
@@ -5,16 +5,7 @@ import { Button } from '@/components/ui/button';
|
||||
import { Upload, FileText, Image, Video, Music, Archive, X } from 'lucide-react';
|
||||
import RoomInfoDisplay from '@/components/RoomInfoDisplay';
|
||||
import { ConnectionStatus } from '@/components/ConnectionStatus';
|
||||
|
||||
|
||||
interface FileInfo {
|
||||
id: string;
|
||||
name: string;
|
||||
size: number;
|
||||
type: string;
|
||||
status: 'ready' | 'downloading' | 'completed';
|
||||
progress: number;
|
||||
}
|
||||
import type { FileInfo } from '@/types';
|
||||
|
||||
const getFileIcon = (mimeType: string) => {
|
||||
if (mimeType.startsWith('image/')) return <Image className="w-5 h-5 text-white" />;
|
||||
|
||||
Reference in New Issue
Block a user