diff --git a/apps/infoalloggi/src/components/schedaAnnuncioStampabile.tsx b/apps/infoalloggi/src/components/schedaAnnuncioStampabile.tsx index f903d81..621402c 100644 --- a/apps/infoalloggi/src/components/schedaAnnuncioStampabile.tsx +++ b/apps/infoalloggi/src/components/schedaAnnuncioStampabile.tsx @@ -1,5 +1,6 @@ "use client"; +import Head from "next/head"; import { useRef } from "react"; import { useReactToPrint } from "react-to-print"; import { Button } from "~/components/ui/button"; @@ -11,9 +12,7 @@ import { replaceWithBr } from "~/lib/newlineToBr"; import type { Annunci } from "~/schemas/public/Annunci"; import { IconMatrix } from "./IconComponents"; import { LogoSvg } from "./svgs"; -import { Separator } from "./ui/separator"; -//todo finire export function SchedaAnnuncioStampabile({ data }: { data: Annunci }) { const contentRef = useRef(null); const reactToPrintFn = useReactToPrint({ @@ -22,20 +21,25 @@ export function SchedaAnnuncioStampabile({ data }: { data: Annunci }) { }); return ( -
-
-
-

Scheda Annuncio Stampabile

+ <> + + Scheda Annuncio {data.codice} + +
+
+
+

Scheda Annuncio Stampabile

- -
-
- + +
+
+ +
-
+ ); } @@ -197,7 +201,15 @@ function SchedaAnnuncio({ data }: { data: Annunci }) { )}
- +
+

+ 📞 Contatti +

+
+

{data.locatore}

+ {data.numero &&

Tel. {data.numero}

} +
+
{/* Description */} {data.desc_it && ( <> @@ -216,40 +228,6 @@ function SchedaAnnuncio({ data }: { data: Annunci }) { )} - {/* Energy Information */} - {data.classe && ( - <> - -
-

- âš¡ Prestazione Energetica -

-
- {data.classe && ( -

- Classe Energetica:{" "} - {data.classe} -

- )} -
-
- - )} - - {/* Contact Information */} - -
-

- 📞 Contatti -

-
-

{data.locatore}

- {data.numero &&

Tel. {data.numero}

} -
-
- - -

{footer}