Prochain événement : cours découverte - le 9 juin de 19h à 20hProchain événement : cours découverte - le 9 juin de 19h à 20h
Bloc Spot
SalleÉcoleFalaiseEntreprisesAgendaTarifsMerchÀ proposContact
Y aller
Agenda
SalleÉcoleFalaiseEntreprises
TarifsMerchÀ proposContact
Y aller
SalleÉcoleFalaiseEntreprisesAgendaTarifsMerchÀ proposContact
Components/Contact Components

API

  • POSTCreate Testimonial
  • GETList Testimonials

Components

  • Auth Components
  • Contact Components
  • Dialog Manager
  • Layout Components
  • Markdown Components

Developer

  • Safe Actions
  • Zod Route

Guide

  • Getting Started
  • Embedding Testimonials

Contact Components

Support dialog and feedback popover components for user communication

Our application comes with two components that allow users to contact you.

ContactSupportDialog

This component displays a modal with a form to contact support.

Form Fields

  • email - Only displayed if the user is not logged in
  • subject - The message subject
  • message - The message content

Basic Usage

<ContactSupportDialog />

By default, a button with the text "Contact support" is displayed.

Custom Usage

You can customize the button or trigger area by passing child content:

<ContactSupportDialog>
  <button>Need help?</button>
</ContactSupportDialog>

Behavior

  • When the form is submitted, an email is sent to the address defined in the NEXT_PUBLIC_EMAIL_CONTACT environment variable
  • A toast "Your message has been sent." is displayed on success
  • An error toast is displayed on failure
  • The modal closes automatically after a successful submission

ContactFeedbackPopover

This component displays a button that opens a popover allowing users to quickly give feedback on the application.

Form Fields

  • email - Only displayed if the user is not logged in
  • message - The feedback content
  • review - A rating system with 4 emojis:
    • (1) - Extremely dissatisfied
    • (2) - Rather dissatisfied
    • (3) - Neutral
    • (4) - Satisfied

Basic Usage

<ContactFeedbackPopover />

By default, a button with the text "Feedback" is displayed.

Custom Usage

You can customize the button or trigger area by passing child content:

<ContactFeedbackPopover>
  <button>Give us your feedback</button>
</ContactFeedbackPopover>

Behavior

  • The popover closes automatically after a successful submission
  • A toast "Your feedback has been sent! Thank you." is displayed on success
  • An error toast is displayed on failure

FAQ

When should I use ContactSupportDialog?

ContactSupportDialog is useful when you want to allow users to report issues or ask questions. It is already used several times in error pages to allow users to quickly report a problem.

When should I use ContactFeedbackPopover?

ContactFeedbackPopover is ideal for quickly collecting general feedback on the user experience. It's less intrusive than a full modal and allows quick rating with emojis.

Auth ComponentsDialog Manager

On This Page

ContactSupportDialogForm FieldsBasic UsageCustom UsageBehaviorContactFeedbackPopoverForm FieldsBasic UsageCustom UsageBehaviorFAQWhen should I use ContactSupportDialog?When should I use ContactFeedbackPopover?
Bloc SpotBloc Spot

Salle d'escalade de bloc à Angoulême. 800 m², 190 voies, ouverte 7j/7 dès 4 ans.

★Laisser un avis Google
Activités
La salle d'escaladeÉcole d'escaladeFalaise avec BrunoAgenda & événementsTeam buildingAnniversaires
Infos
Tarifs & abonnementsMerch & producteurs locauxÀ proposInfos pratiques
Nous trouver
144 Route de Vars
16160 Gond-Pontouvre
Horaires
Lun – Ven9h – 23h
Sam – Dim9h – 21h
07 49 39 93 43blocspot.16@gmail.com
© 2026 Bloc Spot — OSPOT AngoulêmeMentions légalesConfidentialitéCGV
Codé avec cœur parSocial Sphère