import { Button } from "@mantine/core"; import { Command } from "cmdk"; import { useState } from "react"; export default function CmdkTestDemo() { const [opened, setOpened] = useState(false); const actions = [ { id: "1", label: "First", description: "First panel" }, { id: "2", label: "Second", description: "Second panel" }, { id: "3", label: "Third", description: "Third panel" }, ]; return ( <> setOpened(false)} label="Global Command Menu" > No results found. {actions.map((action) => (
{action.label}
{action.description}
))}
); }