2025-08-28 18:27:07 +02:00
|
|
|
import { MessageCircleQuestion } from "lucide-react";
|
2025-08-04 17:45:44 +02:00
|
|
|
import {
|
2025-08-28 18:27:07 +02:00
|
|
|
Credenza,
|
|
|
|
|
CredenzaBody,
|
|
|
|
|
CredenzaContent,
|
|
|
|
|
CredenzaDescription,
|
|
|
|
|
CredenzaHeader,
|
|
|
|
|
CredenzaTitle,
|
|
|
|
|
CredenzaTrigger,
|
2025-08-04 17:45:44 +02:00
|
|
|
} from "~/components/custom_ui/credenza";
|
|
|
|
|
import { Button } from "~/components/ui/button";
|
2025-08-28 18:27:07 +02:00
|
|
|
import { FormContattoAnnucio } from "~/forms/FormContattoAnnuncio";
|
|
|
|
|
import { useAnnuncio } from "~/providers/AnnuncioProvider";
|
2025-08-04 17:45:44 +02:00
|
|
|
|
|
|
|
|
export const ContattoAnnuncio = () => {
|
2025-08-28 18:27:07 +02:00
|
|
|
const { codice } = useAnnuncio();
|
2025-08-04 17:45:44 +02:00
|
|
|
|
2025-08-28 18:27:07 +02:00
|
|
|
return (
|
|
|
|
|
<Credenza>
|
|
|
|
|
<CredenzaTrigger asChild>
|
|
|
|
|
<Button
|
|
|
|
|
variant="destructive"
|
|
|
|
|
className="flex w-full items-center gap-2"
|
|
|
|
|
>
|
|
|
|
|
<MessageCircleQuestion className="size-6" /> Contattaci
|
|
|
|
|
</Button>
|
|
|
|
|
</CredenzaTrigger>
|
|
|
|
|
<CredenzaContent className="max-h-[90vh]">
|
|
|
|
|
<CredenzaHeader>
|
|
|
|
|
<CredenzaTitle>Contattaci per avere informazioni</CredenzaTitle>
|
|
|
|
|
<CredenzaDescription>
|
|
|
|
|
Ti contatteremo il prima possibile per darti più informazioni
|
|
|
|
|
</CredenzaDescription>
|
|
|
|
|
</CredenzaHeader>
|
|
|
|
|
<CredenzaBody className="max-h-[80vh] overflow-auto pb-5">
|
|
|
|
|
<FormContattoAnnucio codice={codice} />
|
|
|
|
|
</CredenzaBody>
|
|
|
|
|
</CredenzaContent>
|
|
|
|
|
</Credenza>
|
|
|
|
|
);
|
2025-08-04 17:45:44 +02:00
|
|
|
};
|