Evalkeeper
    Preparing search index...

    Function CaseMenu

    • A case's menu, in the top right of the open case: edit its answer (the form opens below the menu's row) and retire it. Closes on a click outside or Escape.

      Parameters

      • __namedParameters: {
            caseId: string;
            edit: ReactNode;
            editLabel: string | null;
            retire: (form: FormData) => Promise<void>;
            review?: ReactNode;
            startEditing?: boolean;
            suite: string;
        }
        • caseId: string
        • edit: ReactNode

          The answer form, shown when someone picks editLabel.

        • editLabel: string | null

          "Edit answer" or "Write the answer"; null when there's no form.

        • retire: (form: FormData) => Promise<void>

          Your server action that retires a case (gets suite and case).

        • Optionalreview?: ReactNode

          For an answer nobody has confirmed yet (pending or provisional): the confirm button, shown with Edit answer beside it, in plain sight.

        • OptionalstartEditing?: boolean

          Open the form from the start, for a case with no answer yet.

        • suite: string

      Returns Element