import{j as e}from"./jsx-runtime-C5WNSv3b.js";import{I as t}from"./misc-w_rthUBN.js";import{S as x}from"./tooltip-DXU4r0k_.js";import{a,P as f}from"./set-playground-DeTYkEmL.js";function p({playgroundAppName:s,problemAppName:i,isUpToDate:o,allApps:n,children:d}){const r=s===i,c=r&&o?e.jsx(t,{size:"xl",name:"Linked"}):e.jsx(t,{size:"xl",name:"Unlinked",className:"text-foreground-destructive animate-pulse"});let l="Click to reset Playground.";return o||(l="Playground is out of date. Click to reset Playground."),r||(l="Playground is not set to the right app. Click to set Playground."),e.jsxs("div",{className:"flex h-full w-full flex-col justify-between",children:[e.jsxs("div",{className:"flex h-14 shrink-0 items-center justify-start gap-2 border-b px-3",children:[e.jsx("div",{className:"display-alt-up",children:i?e.jsx(a,{appName:i,tooltipText:l,children:c}):e.jsx(x,{content:"No problem app available for this step",children:e.jsx("div",{children:e.jsx(t,{name:"Question"})})})}),e.jsx("div",{className:"display-alt-down",children:s?e.jsx(a,{appName:s,reset:!0,tooltipText:"Reset Playground","data-keyboard-action":"s+p+p",children:e.jsx("div",{className:"flex h-7 w-7 items-center justify-center",children:e.jsx(t,{name:"Refresh"})})}):e.jsx("div",{className:"h-7 w-7"})}),e.jsx(f,{allApps:n,playgroundAppName:s})]}),e.jsx("div",{className:"flex min-h-0 flex-1 grow items-stretch justify-center overflow-hidden",children:d})]})}export{p as P};
//# sourceMappingURL=playground-window-o8rwGWlA.js.map
