import { Component } from "solid-js" import type { Instance } from "../types/instance" import { FolderOpen, X } from "lucide-solid" interface InstanceTabProps { instance: Instance active: boolean onSelect: () => void onClose: () => void } function formatFolderName(path: string, instances: Instance[], currentInstance: Instance): string { const name = path.split("/").pop() || path const duplicates = instances.filter((i) => { const iName = i.folder.split("/").pop() || i.folder return iName === name }) if (duplicates.length > 1) { const index = duplicates.findIndex((i) => i.id === currentInstance.id) return `~/${name} (${index + 1})` } return `~/${name}` } const InstanceTab: Component = (props) => { return (
) } export default InstanceTab