feat: update some components

This commit is contained in:
Aarnav Tale
2026-03-19 14:33:12 -04:00
parent 873e6005d9
commit 54f236a332
14 changed files with 176 additions and 227 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ export default function Code({ isCopyable, children, className }: CodeProps) {
<button
className="absolute right-0 bottom-0"
onClick={async (event) => {
const text = Array.isArray(children) ? children.join("") : children;
const text = Array.isArray(children) ? children.join("") : String(children);
const svgs = event.currentTarget.querySelectorAll("svg");
for (const svg of svgs) {