PageSourceSearch

https://promptoon.ai/assets/CommunityDiscussionPage-nPT-i0xH.js

js promptoon.ai collected 2026-10-05 14:16:21 UTC 2,958 bytes, 1 lines download raw bytes

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.