"use client" import { SectionHeading } from "@/components/ui/section-heading" import { ComponentContainer } from "@/components/ui/component-container" import { Command, CommandDialog, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandSeparator, CommandShortcut, } from "@/components/ui/command" import { Calculator, Calendar, CreditCard, Settings, Smile, User } from "lucide-react" import { useState, useEffect } from "react" import { Button } from "@/components/ui/button" export function CommandSection() { const [open, setOpen] = useState(false) useEffect(() => { const down = (e: KeyboardEvent) => { if (e.key === "k" && (e.metaKey || e.ctrlKey)) { e.preventDefault() setOpen((open) => !open) } } document.addEventListener("keydown", down) return () => document.removeEventListener("keydown", down) }, []) return (
No results found. Calendar Search Emoji Calculator Profile ⌘P Billing ⌘B Settings ⌘S `} > No results found. Calendar Search Emoji Calculator Profile ⌘P Billing ⌘B Settings ⌘S { const down = (e: KeyboardEvent) => { if (e.key === "k" && (e.metaKey || e.ctrlKey)) { e.preventDefault() setOpen((open) => !open) } } document.addEventListener("keydown", down) return () => document.removeEventListener("keydown", down) }, []) return ( <>

Press{" "} K {" "} to open the command dialog

No results found. Calendar Search Emoji Calculator Profile ⌘P Billing ⌘B Settings ⌘S )`} > <>

Press{" "} K {" "} to open the command dialog

No results found. Calendar Search Emoji Calculator Profile ⌘P Billing ⌘B Settings ⌘S
) }