mirror of
https://github.com/Such-Software/xmrcheckout.git
synced 2026-10-17 05:51:34 +02:00
22 lines
481 B
TypeScript
22 lines
481 B
TypeScript
"use client";
|
|
|
|
type PrintButtonProps = {
|
|
className?: string;
|
|
};
|
|
|
|
export default function PrintButton({ className }: PrintButtonProps) {
|
|
return (
|
|
<button
|
|
type="button"
|
|
onClick={() => window.print()}
|
|
className={
|
|
className ??
|
|
"inline-flex items-center justify-center rounded-md border border-emerald-200 bg-white px-4 py-2 text-sm font-semibold text-emerald-600 transition hover:bg-emerald-50"
|
|
}
|
|
>
|
|
Print
|
|
</button>
|
|
);
|
|
}
|
|
|