+
+
+
+ `;
+
+ // Write the HTML to the new window
+ printWindow.document.write(printHTML);
+ printWindow.document.close();
+};
+
+/**
+ * Prints the current page/memo using the browser's print dialog.
+ * This is a simpler alternative that doesn't create a new window.
+ */
+export const printCurrentPage = () => {
+ window.print();
+};