diff --git a/packages/interface/src/components/layout/TopBar.tsx b/packages/interface/src/components/layout/TopBar.tsx index 151a880c3..4e527ca55 100644 --- a/packages/interface/src/components/layout/TopBar.tsx +++ b/packages/interface/src/components/layout/TopBar.tsx @@ -1,5 +1,5 @@ import { ChevronLeftIcon, ChevronRightIcon } from '@heroicons/react/outline'; -import { useLibraryCommand } from '@sd/client'; +import { AppPropsContext, useLibraryCommand } from '@sd/client'; import { useExplorerStore } from '@sd/client'; import { Dropdown } from '@sd/ui'; import clsx from 'clsx'; @@ -15,7 +15,6 @@ import { } from 'phosphor-react'; import React, { DetailedHTMLProps, HTMLAttributes, useContext } from 'react'; import { useNavigate } from 'react-router-dom'; -import { AppPropsContext } from '../../AppPropsContext'; import { Shortcut } from '../primitive/Shortcut'; import { DefaultProps } from '../primitive/types'; @@ -51,22 +50,27 @@ const TopBarButton: React.FC = ({ icon: Icon, ...props }) => ); }; -const SearchBar: React.FC = (props) => { //TODO: maybe pass the appProps, so we can have the context in the TopBar if needed again +const SearchBar: React.FC = (props) => { + //TODO: maybe pass the appProps, so we can have the context in the TopBar if needed again const appProps = useContext(AppPropsContext); - return ( + return (
- + {/* */}
); -} +}; export const TopBar: React.FC = (props) => { const { locationId } = useExplorerStore();