19 lines
373 B
TypeScript
19 lines
373 B
TypeScript
import React from "react";
|
||
|
||
interface PrintButtonProps {
|
||
handlePrint: () => void;
|
||
}
|
||
|
||
const PrintButton: React.FC<PrintButtonProps> = ({ handlePrint }) => {
|
||
return (
|
||
<button
|
||
onClick={handlePrint}
|
||
className="w-full min-w-[4rem] sm:w-fit bg-blue text-white p-2 rounded-xl text-center "
|
||
>
|
||
چاپ
|
||
</button>
|
||
);
|
||
};
|
||
|
||
export default PrintButton;
|