Hiyve Components - v1.0.0
    Preparing search index...

    Return type for the useQAState hook.

    interface UseQAStateResult {
        addQuestion: (question: Question) => void;
        clearQuestions: () => void;
        questions: Map<string, Question>;
        removeQuestion: (id: string) => void;
        setQuestions: (questions: Question[]) => void;
        setSortMode: (mode: SortMode) => void;
        sortedQuestions: Question[];
        sortMode: SortMode;
        updateQuestion: (id: string, updates: Partial<Question>) => void;
    }
    Index

    Properties

    addQuestion: (question: Question) => void

    Add a new question

    clearQuestions: () => void

    Clear all questions

    questions: Map<string, Question>

    Map of question ID to question

    removeQuestion: (id: string) => void

    Remove a question

    setQuestions: (questions: Question[]) => void

    Set all questions (for state sync)

    setSortMode: (mode: SortMode) => void

    Set the sort mode

    sortedQuestions: Question[]

    Questions sorted according to current sort mode

    sortMode: SortMode

    Current sort mode

    updateQuestion: (id: string, updates: Partial<Question>) => void

    Update an existing question