nextspace
    Preparing search index...

    Interface UseTabNavigationReturn

    Interface for the return type of the useTabNavigation hook, defining the state and functions it provides.

    interface UseTabNavigationReturn {
        activeTab: NavTab;
        activeTabRef: MutableRefObject<NavTab>;
        handleTabChange: (tab: NavTab) => void;
        setUnseenAssistantCount: Dispatch<SetStateAction<number>>;
        setUnseenChatCount: Dispatch<SetStateAction<number>>;
        unseenAssistantCount: number;
        unseenChatCount: number;
    }
    Index

    Properties

    activeTab: NavTab

    The currently active navigation tab.

    activeTabRef: MutableRefObject<NavTab>

    A mutable reference to the currently active navigation tab.

    handleTabChange: (tab: NavTab) => void

    Function to handle changes in the active tab.

    setUnseenAssistantCount: Dispatch<SetStateAction<number>>

    Function to update the unseen assistant count.

    setUnseenChatCount: Dispatch<SetStateAction<number>>

    Function to update the unseen chat count.

    unseenAssistantCount: number

    The count of unseen items in the assistant tab.

    unseenChatCount: number

    The count of unseen items in the chat tab.