diff --git a/src/components/layout/Header.tsx b/src/components/layout/Header.tsx index 29c50b8..ac58a48 100644 --- a/src/components/layout/Header.tsx +++ b/src/components/layout/Header.tsx @@ -1,34 +1,23 @@ -import { Button } from '@/components/buttons' -import { Icon, diamond, refresh, search } from '@/components/icons' +import { Icon, diamond, search } from '@/components/icons' interface HeaderProps { - onRefresh: () => void - refreshDisabled?: boolean onSearch: (query: string) => void searchQuery: string } /** * Application header component - * Contains the app title, search input, and refresh button + * Contains the app title and search input */ -const Header = ({ onRefresh, refreshDisabled = false, onSearch, searchQuery }: HeaderProps) => { +const Header = ({ onSearch, searchQuery }: HeaderProps) => { return (

CreamLinux

+
-
void currentFilter: string - onSettingsClick: () => void } type FilterItem = { @@ -15,7 +15,20 @@ type FilterItem = { variant?: string } -const Sidebar = ({ setFilter, currentFilter, onSettingsClick }: SidebarProps) => { +const Sidebar = ({ setFilter, currentFilter }: SidebarProps) => { + const [version, setVersion] = useState('') + + useEffect(() => { + getVersion() + .then(setVersion) + .catch(() => setVersion('')) + }, []) + + const generalFilters: FilterItem[] = [ + { id: 'overview', label: 'Overview', icon: diamond, variant: 'solid' }, + { id: 'settings', label: 'Settings', icon: settings, variant: 'solid' }, + ] + const steamFilters: FilterItem[] = [ { id: 'all', label: 'All Games', icon: layers, variant: 'solid' }, { id: 'native', label: 'Native', icon: linux, variant: 'brand' }, @@ -45,6 +58,12 @@ const Sidebar = ({ setFilter, currentFilter, onSettingsClick }: SidebarProps) =>

Library

+
+
    + {generalFilters.map(renderFilter)} +
+
+
Steam
    @@ -59,18 +78,22 @@ const Sidebar = ({ setFilter, currentFilter, onSettingsClick }: SidebarProps) =>
- +
+
+ {version && v{version}} + Stable +
+ + GitHub + +
) } -export default Sidebar \ No newline at end of file +export default Sidebar