* remaining UI docs * completed ui component docs --------- Co-authored-by: Charles Bochet <charles@twenty.com>
21 lines
473 B
JavaScript
21 lines
473 B
JavaScript
import { IconBell } from "@tabler/icons-react";
|
|
import { MenuItemCommand } from "@/ui/navigation/menu-item/components/MenuItemCommand";
|
|
|
|
export const MyComponent = () => {
|
|
const handleCommandClick = () => {
|
|
console.log("Command clicked!");
|
|
};
|
|
|
|
return (
|
|
<MenuItemCommand
|
|
LeftIcon={IconBell}
|
|
text="First Option"
|
|
firstHotKey="⌘"
|
|
secondHotKey="1"
|
|
isSelected={true}
|
|
onClick={handleCommandClick}
|
|
className
|
|
/>
|
|
);
|
|
};
|