import { X } from "lucide-react"; import { usePanel } from "../context/PanelContext"; import { Button } from "@/components/ui/button"; import { ResizableSidebarPane } from "./ResizableSidebarPane"; const PROPERTIES_PANEL_DEFAULT = 320; const PROPERTIES_PANEL_MIN = 320; const PROPERTIES_PANEL_MAX = 640; const PROPERTIES_PANEL_STORAGE_KEY = "paperclip.properties.width"; export function PropertiesPanel() { const { panelContent, panelLayout, panelVisible, setPanelVisible } = usePanel(); if (!panelContent) return null; const storageKey = panelLayout.storageKey ?? PROPERTIES_PANEL_STORAGE_KEY; const defaultWidth = panelLayout.defaultWidth ?? PROPERTIES_PANEL_DEFAULT; const minWidth = panelLayout.minWidth ?? PROPERTIES_PANEL_MIN; const maxWidth = panelLayout.maxWidth ?? PROPERTIES_PANEL_MAX; const compactBelowViewport = panelLayout.compactBelowViewport; const compactMaxWidth = panelLayout.compactMaxWidth; return ( ); }