Files
ox_lib/web/src/features/dev/debug/menu.ts
Luke 0bc185ef38 feat(web): developer drawer
Move all debug functions into a single developer drawer,

Not the best implementation as there is focus fighting going on between some elements and the drawer but will do for now without state management
2022-08-27 15:40:41 +02:00

42 lines
1.1 KiB
TypeScript

import { debugData } from "../../../utils/debugData";
import { MenuSettings } from "../../menu/list";
export const debugMenu = () => {
debugData<MenuSettings>([
{
action: "setMenu",
data: {
// position: "bottom-left",
title: "Vehicle garage",
items: [
{ label: "Option 1", icon: "heart" },
{
label: "Option 2",
icon: "basket-shopping",
description: "Tooltip description 1",
},
{
label: "Vehicle class",
values: ["Nice", "Super nice", "Extra nice"],
icon: "tag",
description: "Tooltip description 2",
},
{ label: "Option 1" },
{ label: "Option 2" },
{
label: "Vehicle class",
values: ["Nice", "Super nice", "Extra nice"],
defaultIndex: 1,
},
{ label: "Option 1" },
{ label: "Option 2" },
{
label: "Vehicle class",
values: ["Nice", "Super nice", "Extra nice"],
},
],
},
},
]);
};