chore: dev dep @playwright/test
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.7
parent
ac4cbdd9e6
commit
ee4a88e499
@@ -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>;
|
||||
}
|
||||
Reference in New Issue
Block a user