19 lines
364 B
TypeScript
19 lines
364 B
TypeScript
import React from "react";
|
|
|
|
interface PrintButtonProps {
|
|
handlePrint: () => void;
|
|
}
|
|
|
|
const PrintButton: React.FC<PrintButtonProps> = ({ handlePrint }) => {
|
|
return (
|
|
<button
|
|
onClick={handlePrint}
|
|
className="w-full sm:w-fit bg-blue text-white p-2 rounded-xl text-center "
|
|
>
|
|
پرینت
|
|
</button>
|
|
);
|
|
};
|
|
|
|
export default PrintButton;
|