MenuItem: Action | {
    separator: boolean;
    title?: string;
}

After sorting and grouping an array of SubmenuItems, it is compiled into an array of MenuItems