1import{j as e}from"./vendor-react-FxOLBZtb.js";import{t as n}from"./ChatCircle--Q6jUsTG.js";import{u as a}from"./useQuery-CMh_VPsq.js";import{u as d,L as i,p as o}from"./index-yYlIxWk_.js";import{c}from"./community.api-T4N4ImcI.js";import"./useBaseQuery-DlMZi1b5.js";function u(){const{publishId:s}=d(),r=a({queryKey:o.communityEmbed(s??""),queryFn:()=>c.getCommunityEmbed(s??""),enabled:!!s});if(r.isLoading)return e.jsx("main",{className:"min-h-dvh bg-zinc-950 p-8 text-zinc-300",children:"ëê¸ì ë¶ë¬ì¤ê³ ììµëë¤."});if(r.isError||!r.data)return e.jsx("main",{className:"min-h-dvh bg-zinc-950 p-8 text-red-200",children:"ëê¸ ê³µê°ì ë¶ë¬ì¬ ì ììµëë¤."});const t=r.data;return e.jsx("main",{className:"min-h-dvh bg-zinc-950 px-4 py-8 text-zinc-100 sm:px-6",children:e.jsxs("section",{className:"mx-auto max-w-3xl rounded-[32px] border border-white/10 bg-white/[0.06] p-6 shadow-2xl shadow-black/30",children:[e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"grid h-12 w-12 shrink-0 place-items-center rounded-2xl bg-editor-accent text-white",children:e.jsx(n,{className:"h-6 w-6"})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-[11px] uppercase tracking-[0.22em] text-editor-accentSoft",children:"Community"}),e.jsx("h1",{className:"mt-2 font-display text-3xl font-semibold tracking-tight",children:t.title}),e.jsxs("p",{className:"mt-2 text-sm text-zinc-400",children:["ëê¸ ",t.commentCount.toLocaleString("ko-KR"),"ê°"]})]})]}),e.jsx("div",{className:"mt-6 rounded-[24px] border border-white/10 bg-black/25 p-5",children:t.provider==="discourse"&&t.embedUrl?e.jsxs("div",{className:"space-y-4",children:[e.jsx("p",{className:"text-sm leading-7 text-zinc-300",children:"Discourse í ë¡ ì¼ë¡ ì°ê²°ë ëê¸ ê³µê°ì
ëë¤."}),e.jsx("a",{className:"inline-flex rounded-full bg-editor-accent px-4 py-2 text-sm font-semibold text-white transition hover:bg-editor-accentSoft",href:t.embedUrl,rel:"noreferrer",target:"_blank",children:"Discourseìì ì´ê¸°"})]}):e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"text-sm leading-7 text-zinc-300",children:"íì¬ ëê¸ embedë Promptoon ë´ë¶ ê´ë¦¬í í ë¡ ê³µê°ì¼ë¡ íìë©ëë¤. Discourse ì°ê²° ì ê°ì ê²½ë¡ìì ì¸ë¶ thread embedë¡ êµì²´ë©ëë¤."}),e.jsx("div",{className:"mt-5 rounded-2xl border border-dashed border-white/10 bg-black/25 p-5 text-sm text-zinc-400",children:"첫 ëê¸ì´ ìì§ ììµëë¤."})]})}),e.jsxs("div",{className:"mt-6 flex flex-wrap gap-3",children:[e.jsx(i,{className:"rounded-full border border-white/10 px-4 py-2 text-sm text-zinc-200 transition hover:border-editor-accentSoft",to:"/discovery",children:"í¼ëë¡ ëìê°ê¸°"}),e.jsx(i,{className:"rounded-full border border-white/10 px-4 py-2 text-sm text-zinc-200 transition hover:border-editor-accentSoft",to:`/v/${t.publishId}`,children:"ìíì¼ë¡ ëìê°ê¸°"})]})]})})}export{u as CommunityDiscussionPage};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.