Interface UseCategoryReturn

Interface representing the return type of the useCategory hook.

Hierarchy

  • Partial<CategoryType>
    • UseCategoryReturn

Properties

category: null | CategoryType

The current category object, or null if no category is selected or fetched.

children?: CategoryType[]

Function to create a new category.

Function to delete the current category.

fetched: boolean

Boolean indicating whether the category data has been successfully fetched.

id?: string
name?: string
parents: CategoryParentType[]

An array of parent categories, excluding the root category.

Function to rename the current category.

Generated using TypeDoc