mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-24 23:35:45 +00:00
23 lines
548 B
TypeScript
23 lines
548 B
TypeScript
'use client';
|
|
|
|
import { ReactNode } from 'react';
|
|
import { StateCreator } from 'zustand';
|
|
import { UIStore } from '@/types/stores';
|
|
|
|
type NavbarActionsSlice = {
|
|
navbarActions: ReactNode | null;
|
|
setNavbarActions: (actions: ReactNode) => void;
|
|
clearNavbarActions: () => void;
|
|
};
|
|
|
|
export const createNavbarActionsSlice: StateCreator<
|
|
UIStore,
|
|
[],
|
|
[],
|
|
NavbarActionsSlice
|
|
> = (set) => ({
|
|
navbarActions: null,
|
|
setNavbarActions: (actions) => set({ navbarActions: actions }),
|
|
clearNavbarActions: () => set({ navbarActions: null }),
|
|
});
|