"use client"; import React from 'react'; import { X } from 'lucide-react'; import { useEditorStore } from '@/store/editor-store'; import { cn, getFileIcon } from '@/lib/utils'; export function FileTabs() { const { openFiles, activeFileId, setActiveFile, closeFile } = useEditorStore(); if (openFiles.length === 0) { return null; } return (
{openFiles.map((file: any) => (
setActiveFile(file.id)} > {getFileIcon(file.name)} {file.name} {file.isDirty && ( )}
))}
); }