mirror of
https://github.com/bitinflow/ui.git
synced 2026-03-13 13:45:59 +00:00
13 lines
374 B
TypeScript
13 lines
374 B
TypeScript
import {useMenuStore} from "../stores/menu";
|
|
import {MenuOptions} from "../../types";
|
|
|
|
export const useMenu = (options: MenuOptions) => {
|
|
const menu = useMenuStore()
|
|
if (options.thirdLevelLinks) {
|
|
menu.updateThirdLevelLinks(options.thirdLevelLinks)
|
|
}
|
|
if (options.thirdLevelProps) {
|
|
menu.updateThirdLevelProps(options.thirdLevelProps)
|
|
}
|
|
}
|