361 create a navigation stack for the command menu (#9995)
Closes https://github.com/twentyhq/core-team-issues/issues/361 - Created navigation stack state - Created navigation functions inside the `useCommandMenu` hook - Added tests
This commit is contained in:
@ -0,0 +1,15 @@
|
||||
import { CommandMenuPages } from '@/command-menu/types/CommandMenuPages';
|
||||
import { IconComponent, createState } from 'twenty-ui';
|
||||
|
||||
export type CommandMenuNavigationStackItem = {
|
||||
page: CommandMenuPages;
|
||||
pageTitle?: string;
|
||||
pageIcon?: IconComponent;
|
||||
};
|
||||
|
||||
export const commandMenuNavigationStackState = createState<
|
||||
CommandMenuNavigationStackItem[]
|
||||
>({
|
||||
key: 'command-menu/commandMenuNavigationStackState',
|
||||
defaultValue: [],
|
||||
});
|
||||
Reference in New Issue
Block a user