import{j as e}from"./jsx-runtime-C5WNSv3b.js";import{r as a}from"./index-CqIc3cxq.js";import{I as n}from"./misc-W4055b-0.js";function d({exerciseNumber:r}){const[t,s]=a.useState(!1),i=r?`Please quiz me on exercise ${r} using the epicshop MCP server. Call the get_quiz_instructions tool with exerciseNumber "${r}" 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.";a.useEffect(()=>{if(t){const o=setTimeout(()=>s(!1),1e3);return()=>clearTimeout(o)}},[t]);const l=async()=>{try{await navigator.clipboard.writeText(i),s(!0)}catch(o){console.error("Failed to copy to clipboard:",o)}};return e.jsxs("div",{className:"border-border mt-6 border-t pt-6",children:[e.jsx("h2",{className:"text-foreground mb-3 text-xl font-semibold",children:"Test Your Knowledge"}),e.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."}),e.jsxs("div",{className:"bg-background border-border relative mb-4 rounded-lg border p-4",children:[e.jsx("pre",{className:"text-foreground pr-10 text-sm break-words whitespace-pre-wrap",children:i}),e.jsx("button",{onClick:l,className:"text-muted-foreground hover:text-foreground absolute top-4 right-4 transition-colors","aria-label":t?"Copied!":"Copy prompt to clipboard",children:e.jsx(n,{name:t?"CheckSmall":"Copy",size:"sm"})})]}),e.jsx("p",{className:"text-muted-foreground text-sm",children:e.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",e.jsx(n,{name:"ExternalLink",size:"sm"})]})})]})}export{d as R};
//# sourceMappingURL=retrieval-practice-BOku32wW.js.map
