"use client"; import { FC, useState, Fragment } from "react"; import { Search, X } from "lucide-react"; import { Dialog, Transition } from "@headlessui/react"; // components import { Input } from "@plane/ui"; import { ShortcutCommandsList } from "@/components/command-palette"; // ui type Props = { isOpen: boolean; onClose: () => void; }; export const ShortcutsModal: FC = (props) => { const { isOpen, onClose } = props; // states const [query, setQuery] = useState(""); const handleClose = () => { onClose(); setQuery(""); }; return (
Keyboard shortcuts
setQuery(e.target.value)} placeholder="Search for shortcuts" className="w-full border-none bg-transparent py-1 text-xs text-custom-text-200 outline-none" autoFocus tabIndex={1} />
); };