Sootzani/components/PrintButton.tsx

19 lines
373 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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;