37 lines
812 B
TypeScript
37 lines
812 B
TypeScript
// components/PrintPage.tsx
|
|
import React from "react";
|
|
|
|
interface PrintPageProps {
|
|
contentRef: React.RefObject<any>;
|
|
fetchedContent: string;
|
|
trackingNumber: string;
|
|
password: string;
|
|
}
|
|
|
|
const PrintPage: React.FC<PrintPageProps> = ({
|
|
contentRef,
|
|
fetchedContent,
|
|
trackingNumber,
|
|
password,
|
|
}) => {
|
|
return (
|
|
<div
|
|
ref={contentRef}
|
|
className="w-screen h-screen border-2 border-spacing-6 p-36 bg-slate-200 bg-[url('/img/bg-print.jpg')] bg-no-repeat bg-bottom bg-cover font-[yekan]"
|
|
dir="rtl"
|
|
>
|
|
<div dangerouslySetInnerHTML={{ __html: fetchedContent }} className=" " />
|
|
|
|
<p >
|
|
کد پیگیری : <span>{trackingNumber}</span>
|
|
</p>
|
|
|
|
<p>
|
|
رمز عبور : <span>{password}</span>
|
|
</p>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default PrintPage;
|