chore: dev dep @playwright/test

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
ahmed mohammed
2026-09-22 08:32:40 +03:00
co-authored by Claude Opus 4.7
parent ac4cbdd9e6
commit ee4a88e499
13 changed files with 228 additions and 4 deletions
+11
View File
@@ -0,0 +1,11 @@
"use client";
export function ExportButtons({ oul, title }: { oul: string; title: string }) {
const copy = async () => {
const sql = [...document.querySelectorAll<HTMLElement>("#report pre.sql")].map((p) => p.textContent).join("\n\n");
await navigator.clipboard.writeText(`${title}\n\n${sql || oul}`);
};
return <div className="toolbar no-print" style={{ display: "flex", gap: "var(--qai-space-s)" }}>
<button className="btn" onClick={copy}>Copy</button>
<button className="btn" onClick={() => window.print()}>Export to PDF</button>
</div>;
}