Update code component
All checks were successful
Build And Publish / BuildAndPublish (push) Successful in 3m16s

This commit is contained in:
Ryan Freeman 2025-04-12 21:14:35 +01:00
parent c3b3a0d845
commit 73f9541f14

View File

@ -18,7 +18,7 @@ export function Code({children}: { children: ReactNode }) {
return (
<pre className="relative" ref={preRef}>
<button className="absolute top-0 right-0 m-5" onClick={handleCopy} aria-label="Copy code">
{copied ? <CheckIcon className="size-6 text-indigo-500"/> :
{copied ? <CheckIcon className="size-6 text-green-500"/> :
<CopyIcon className="size-6 text-zinc-400 hover:text-zinc-50"/>}
</button>
<div className="mt-5 sm:mt-0 pb-5 overflow-auto ">