Workflow-App/Workflow/components/PrintButton.tsx

18 lines
704 B
TypeScript
Raw Permalink Normal View History

"use client";
export default function PrintButton() {
return (
<button
onClick={() => window.print()}
className="inline-flex items-center gap-2 px-4 py-2 border border-border rounded-md text-sm font-semibold text-fg hover:bg-surface-warm transition-colors"
>
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
<polyline points="6 9 6 2 18 2 18 9"></polyline>
<path d="M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2"></path>
<rect x="6" y="14" width="12" height="8"></rect>
</svg>
Print / Save PDF
</button>
);
}