import PropTypes from 'prop-types'; import { useEffect, useRef } from 'react'; import { CssVarsProvider } from '@mui/joy/styles'; import { Button } from '@mui/joy'; import theme from './theme'; function Launchpad({ onClose }) { const launchpadRef = useRef(null); useEffect(() => { const handleClickOutside = (event) => { if (launchpadRef.current && !launchpadRef.current.contains(event.target)) { onClose(); } }; document.addEventListener("mousedown", handleClickOutside); return () => { document.removeEventListener("mousedown", handleClickOutside); }; }, [onClose]); return (

Launchpad

A one-stop shop for adding hosts, apps (AI, notes, etc.), and all new features to come! Coming to you in a future update. Stay tuned!

Can also be opened using Ctrl + L

); } Launchpad.propTypes = { onClose: PropTypes.func.isRequired, }; export default Launchpad;