import { FC, useState, Fragment } from "react"; import { Dialog, Transition } from "@headlessui/react"; import { Search, X } from "lucide-react"; // components import { ShortcutCommandsList } from "components/command-palette"; // ui import { Input } from "@plane/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} />
); };