diff --git a/src/components/sidebar/menu-options.tsx b/src/components/sidebar/menu-options.tsx index cd811ec..efc1ae5 100644 --- a/src/components/sidebar/menu-options.tsx +++ b/src/components/sidebar/menu-options.tsx @@ -10,12 +10,13 @@ import { import { useEffect, useMemo, useState } from 'react' import { Sheet, SheetContent, SheetTrigger } from '../ui/sheet' import { Button } from '../ui/button' -import { Menu } from 'lucide-react' +import { LucideChevronDownCircle, Menu } from 'lucide-react' import clsx from 'clsx' import { AspectRatio } from '../ui/aspect-ratio' import Image from 'next/image' -import { Popover, PopoverTrigger } from '../ui/popover' +import { Popover, PopoverContent, PopoverTrigger } from '../ui/popover' import Compass from '../icons/compass' +// import { Command } from '../ui/command' type Props = { @@ -100,9 +101,21 @@ const MenuOptions = ({ {details.name} +
+ +
+ + {/* + + */} + + diff --git a/src/components/ui/command.tsx b/src/components/ui/command.tsx new file mode 100644 index 0000000..9919fae --- /dev/null +++ b/src/components/ui/command.tsx @@ -0,0 +1,159 @@ +// 'use client' + +// import * as React from 'react' +// import { type DialogProps } from '@radix-ui/react-dialog' +// import { Command as CommandPrimitive } from 'cmdk' +// import { Search } from 'lucide-react' + +// import { cn } from '@/lib/utils' +// import { Dialog, DialogContent } from '@/components/ui/dialog' + +// const Command = React.forwardRef< +// React.ElementRef, +// React.ComponentPropsWithoutRef +// >(({ className, ...props }, ref) => ( +// +// )) +// Command.displayName = CommandPrimitive.displayName + +// interface CommandDialogProps extends DialogProps { } + +// const CommandDialog = ({ children, ...props }: CommandDialogProps) => { +// return ( +// +// +// +// {children} +// +// +// +// ) +// } + +// const CommandInput = React.forwardRef< +// React.ElementRef, +// React.ComponentPropsWithoutRef +// >(({ className, ...props }, ref) => ( +//
+// +// +//
+// )) + +// CommandInput.displayName = CommandPrimitive.Input.displayName + +// const CommandList = React.forwardRef< +// React.ElementRef, +// React.ComponentPropsWithoutRef +// >(({ className, ...props }, ref) => ( +// +// )) + +// CommandList.displayName = CommandPrimitive.List.displayName + +// const CommandEmpty = React.forwardRef< +// React.ElementRef, +// React.ComponentPropsWithoutRef +// >((props, ref) => ( +// +// )) + +// CommandEmpty.displayName = CommandPrimitive.Empty.displayName + +// const CommandGroup = React.forwardRef< +// React.ElementRef, +// React.ComponentPropsWithoutRef +// >(({ className, ...props }, ref) => ( +// +// )) + +// CommandGroup.displayName = CommandPrimitive.Group.displayName + +// const CommandSeparator = React.forwardRef< +// React.ElementRef, +// React.ComponentPropsWithoutRef +// >(({ className, ...props }, ref) => ( +// +// )) +// CommandSeparator.displayName = CommandPrimitive.Separator.displayName + +// //CHANGED: +// const CommandItem = React.forwardRef< +// React.ElementRef, +// React.ComponentPropsWithoutRef +// >(({ className, ...props }, ref) => ( +// +// )) + +// CommandItem.displayName = CommandPrimitive.Item.displayName + +// const CommandShortcut = ({ +// className, +// ...props +// }: React.HTMLAttributes) => { +// return ( +// +// ) +// } +// CommandShortcut.displayName = 'CommandShortcut' + +// export { +// Command, +// CommandDialog, +// CommandInput, +// CommandList, +// CommandEmpty, +// CommandGroup, +// CommandItem, +// CommandShortcut, +// CommandSeparator, +// } \ No newline at end of file