import{j as t}from"./jsx-runtime-hUI6LOBV.js";import{r as n}from"./index-CFdT0RIo.js";import{I as a}from"./misc-BNcbB3dR.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"66e9b849450b819e11683314a547a341cb57f7d0"};var r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="6ab42670-ce11-46fa-a5fe-8cf53b5cb4cb",e._sentryDebugIdIdentifier="sentry-dbid-6ab42670-ce11-46fa-a5fe-8cf53b5cb4cb")}catch{}})();function p({exerciseNumber:e}){const[r,o]=n.useState(!1),i=e?`Please quiz me on exercise ${e} using the epicshop MCP server. Call the get_quiz_instructions tool with exerciseNumber "${e}" to get the quiz instructions, then quiz me one question at a time.`:"Please quiz me on this workshop using the epicshop MCP server. Call the get_quiz_instructions tool to get the quiz instructions, then quiz me one question at a time.";n.useEffect(()=>{if(r){const s=setTimeout(()=>o(!1),1e3);return()=>clearTimeout(s)}},[r]);const l=async()=>{try{await navigator.clipboard.writeText(i),o(!0)}catch(s){console.error("Failed to copy to clipboard:",s)}};return t.jsxs("div",{className:"border-border mt-6 border-t pt-6",children:[t.jsx("h2",{className:"text-foreground mb-3 text-xl font-semibold",children:"Test Your Knowledge"}),t.jsx("p",{className:"text-muted-foreground mb-4",children:"Retrieval practice helps solidify learning by actively recalling information. Use this prompt with your AI assistant to quiz yourself on what you've learned."}),t.jsxs("div",{className:"bg-background border-border relative mb-4 rounded-lg border p-4",children:[t.jsx("pre",{className:"text-foreground pr-10 text-sm break-words whitespace-pre-wrap",children:i}),t.jsx("button",{onClick:l,className:"text-muted-foreground hover:text-foreground absolute top-4 right-4 transition-colors","aria-label":r?"Copied!":"Copy prompt to clipboard",children:t.jsx(a,{name:r?"CheckSmall":"Copy",size:"sm"})})]}),t.jsx("p",{className:"text-muted-foreground text-sm",children:t.jsxs("a",{href:"https://www.epicai.pro/your-ai-assistant-instructor-the-epicshop-mcp-server-0eazr",target:"_blank",rel:"noopener noreferrer",className:"text-foreground inline-flex items-center gap-1.5 hover:underline",children:["Learn how to set up the epicshop MCP server",t.jsx(a,{name:"ExternalLink",size:"sm"})]})})]})}export{p as R};
//# sourceMappingURL=retrieval-practice-DaD6eeDM.js.map
