import React, { type FC } from 'react'; import { useSearchSuggestions } from 'hooks/searchHook'; import Loading from 'components/loading/LoadingComponent'; import { appRouter } from '../router/appRouter'; import globalize from '../../scripts/globalize'; import LinkButton from 'elements/emby-button/LinkButton'; import '../../elements/emby-button/emby-button'; interface SearchSuggestionsProps { parentId?: string; } const SearchSuggestions: FC = ({ parentId }) => { const { isLoading, data: suggestions } = useSearchSuggestions(parentId); if (isLoading) return ; return (

{globalize.translate('Suggestions')}

{suggestions?.map((item) => (
{item.Name}
))}
); }; export default SearchSuggestions;