import { Button, Heading, Img, Link, Row, Section, Text, } from "@react-email/components"; import { env } from "~/env"; import Base from "./base"; export type ShareAnnunci_NewMail = { mailType: "shareAnnunci"; props: ShareAnnunciProps; }; type ShareAnnunciProps = { nome: string; annunci?: { titolo: string | null; immagine: string | null; codice: string; prezzo: number; }[]; }; const ShareAnnunci = ({ nome, annunci }: ShareAnnunciProps) => { return ( <> Procedi ora su Infoalloggi.it
Ciao {nome},
Accedi ora al servizio di ricerca Infoalloggi, dove potrai andare a contattare direttamente i proprietari degli immobili disponibili.
{annunci?.map((annuncio) => ( <> Annunci selezionati per te:
{`Annuncio
Codice: {annuncio.codice}
{annuncio.titolo || "N/A"} Prezzo: € {(annuncio.prezzo / 1e2).toFixed(2)} Scheda dell'annuncio →
))}
); }; export default ShareAnnunci;