diff --git a/src/common/components/atoms/command.tsx b/src/common/components/atoms/command.tsx index bf0626d6..ba829dba 100644 --- a/src/common/components/atoms/command.tsx +++ b/src/common/components/atoms/command.tsx @@ -41,7 +41,7 @@ const CommandInput = React.forwardRef< React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => (
- + void; }; +type NavButtonProps = Omit; + type NavProps = { isEditable: boolean; enterEditMode: () => void; }; const Navigation: React.FC = ({ isEditable, enterEditMode }) => { + const searchRef = useRef(null); const { setModalOpen, getIsLoggedIn, getIsInitializing } = useAppStore( (state) => ({ setModalOpen: state.setup.setModalOpen, @@ -107,6 +109,33 @@ const Navigation: React.FC = ({ isEditable, enterEditMode }) => { ); }; + const NavButton: React.FC = ({ + label, + Icon, + onClick, + disable = false, + }) => { + return ( +
  • + +
  • + ); + }; + + const openSearchModal = useCallback(() => { + if (!searchRef?.current) return; + searchRef.current.focus(); + }, [searchRef]); + return (