ChemPal Documentation - v0.0.0
    Preparing search index...

    Interface AppContextProps

    AppContextProps interface for application context

    interface AppContextProps {
        userSettings: UserSettings;
        setUserSettings: (settings: UserSettings) => void;
        searchResults: Product[];
        setSearchResults: (results: Product[]) => void;
        setPanel?: (panel: number) => void;
        setDrawerTab: (tab: number) => void;
        toggleDrawer: () => void;
        drawerTab: number;
        selectedSuppliers: string[];
        setSelectedSuppliers: (suppliers: string[]) => void;
    }
    Index

    Properties

    userSettings: UserSettings

    Application settings

    setUserSettings: (settings: UserSettings) => void

    Function to update settings

    searchResults: Product[]

    Search results

    setSearchResults: (results: Product[]) => void

    Function to update search results

    setPanel?: (panel: number) => void

    Function to update panel

    setDrawerTab: (tab: number) => void

    Function to update drawer tab

    toggleDrawer: () => void

    Function to toggle drawer

    drawerTab: number

    Drawer state management - -1 = closed, 0 = search tab, 1 = settings tab

    selectedSuppliers: string[]

    Selected Suppliers

    setSelectedSuppliers: (suppliers: string[]) => void

    Function to update selected suppliers