import{a as c,c as d}from"/build/_shared/chunk-IFKH6WES.js";import{a as u}from"/build/_shared/chunk-YCZ72ESF.js";import{b as s}from"/build/_shared/chunk-N2QZPEPI.js";import{A as l,p as r,u as a}from"/build/_shared/chunk-IYEHZB2Y.js";import{d as i}from"/build/_shared/chunk-4AMCPB2Y.js";var m=i(u(),1);var e=i(l(),1);function x({discordAuthUrl:t}){let o=c(),n=d();return o?o&&!n?t:o&&n?"https://discord.com/channels/715220730605731931/1161045224907341972":"https://kentcdodds.com/discord":"/login"}function p({discordAuthUrl:t}){let o=c(),n=d();return o?o&&!n?(0,e.jsxs)("div",{className:"flex flex-wrap items-center justify-center gap-2 text-xl",children:[(0,e.jsxs)(r,{to:t,className:"flex items-center gap-2 underline",children:[(0,e.jsx)(s,{name:"Discord",size:32}),"Connect Discord"]})," ",(0,e.jsxs)("span",{children:["to get access to the exclusive"," ",(0,e.jsx)(r,{to:"/discord",className:"underline",children:"discord channel"}),"."]})]}):o&&n?(0,e.jsxs)("div",{className:"flex items-center justify-center gap-2 text-xl underline",children:[(0,e.jsx)(r,{to:"discord://discord.com/channels/715220730605731931/1161045224907341972",children:(0,e.jsx)(s,{name:"Discord",size:32})}),(0,e.jsx)(r,{to:"https://discord.com/channels/715220730605731931/1161045224907341972",target:"_blank",rel:"noreferrer noopener",children:"Open Discord"})]}):(0,e.jsxs)(r,{to:"https://kentcdodds.com/discord",className:"flex items-center gap-2 underline",children:[(0,e.jsx)(s,{name:"Discord",size:32}),"Learn about discord"]}):(0,e.jsxs)("div",{className:"flex flex-wrap items-center justify-center gap-2 text-xl",children:[(0,e.jsxs)(r,{to:"/login",className:"inline-flex items-center gap-2 underline",children:[(0,e.jsx)(s,{name:"Discord",size:32}),"Login"]})," ",(0,e.jsxs)("span",{children:["to get access to the exclusive"," ",(0,e.jsx)(r,{to:"/discord",className:"underline",children:"discord channel"}),"."]})]})}function k(){let t=a();return(0,e.jsxs)("div",{className:"container flex h-full max-w-3xl flex-col items-center justify-center gap-4 p-12",children:[(0,e.jsx)(p,{discordAuthUrl:t.discordAuthUrl}),(0,e.jsxs)("p",{children:["The"," ",(0,e.jsx)(r,{target:"_blank",rel:"noreferrer noopener",className:"underline",to:"https://kentcdodds.com/discord",children:"KCD Community on Discord"})," ","is a great place to hang out with other developers who are working through this workshop. You can ask questions, get help, and solidify what you're learning by helping others."]}),(0,e.jsx)("p",{children:(0,e.jsxs)("small",{className:"text-sm",children:["If you've not joined the KCD Community on Discord yet, you'll be required to go through a short onboarding process first. A friendly bot will explain the process when you"," ",(0,e.jsx)(r,{to:"https://kcd.im/discord",target:"_blank",rel:"noreferrer noopener",className:"underline",children:"join"}),"."]})})]})}export{x as a,p as b,k as c};
//# sourceMappingURL=/build/_shared/chunk-HYHTVHI4.js.map
