import{o as e}from"./rolldown-runtime-iuO8RvI4.js";import{Mi as o,ki as s}from"./vendor-frame-CwiylG4Y.js";import{vr as a}from"./c360a9e1c-DrYIyI47.js";import{rn as r}from"./vendor-all-2-BJdkbLSj.js";import{R as t,X as n,nt as l}from"./shared-frame-DbQbH4Yr.js";import{sn as i}from"./shared-15-B0mLQAfh.js";import{t as m}from"./c10f0af0c-seKrhOZH.js";var c=e(o()),f=s();function p({projectId:e,onClose:o}){const s=r(),p=i(),d=n(1),x=(0,c.useMemo)(()=>({onClose:o}),[o]),j=s.formatMessage({defaultMessage:"Close pane",id:"Sf+ebwMYFz"});return(0,f.jsx)(l,{density:"compact",fontMono:p,className:"contents",children:(0,f.jsxs)("div",{className:"epitaxy-root relative isolate select-none flex-1 min-h-0 flex flex-col overflow-hidden",style:{"--epitaxy-titlebar-pr":"44px"},children:[(0,f.jsx)("div",{className:"draggable-none absolute right-[12px] top-0 flex h-[32px] items-center",style:{zIndex:d},children:(0,f.jsx)(t,{variant:"ghost",iconOnly:!0,icon:"X",size:"sm","aria-label":j,tooltip:j,onClick:o,onMouseDown:e=>e.preventDefault(),className:a})}),(0,f.jsx)(m,{projectId:e,paneHost:x},e)]})})}export{p as EpitaxyProjectSecondPane};