coldbydefault-portfolio
    Preparing search index...

    Function useFeedbackSubmit

    • Sends one submission. The server answers failures with a bare code, which is passed through for the form to translate; anything else (a network error, a proxy page) becomes SERVICE_UNAVAILABLE.

      Returns {
          reset: () => void;
          state: FeedbackSubmitState;
          submit: (
              input: {
                  consentToPublish: boolean;
                  locale: "en" | "de" | "es" | "fr" | "sv";
                  message: string;
                  name: string;
                  rating: number | null;
                  startedAt: number;
                  topic: "me" | "website";
                  website: string;
              },
          ) => Promise<boolean>;
      }