diff --git a/src/renderer/src/components/sidebar/sidebar-game-item.tsx b/src/renderer/src/components/sidebar/sidebar-game-item.tsx
new file mode 100644
index 00000000..24ec296f
--- /dev/null
+++ b/src/renderer/src/components/sidebar/sidebar-game-item.tsx
@@ -0,0 +1,48 @@
+import SteamLogo from "@renderer/assets/steam-logo.svg?react";
+import { LibraryGame } from "@types";
+import cn from "classnames";
+import { useLocation } from "react-router-dom";
+
+export function SidebarGameItem({
+ game,
+ handleSidebarGameClick,
+ getGameTitle,
+}: {
+ game: LibraryGame;
+ handleSidebarGameClick: (event: React.MouseEvent, game: LibraryGame) => void;
+ getGameTitle: (game: LibraryGame) => string;
+}) {
+ const location = useLocation();
+
+ return (
+
+
+
+ );
+}
diff --git a/src/renderer/src/components/sidebar/sidebar.tsx b/src/renderer/src/components/sidebar/sidebar.tsx
index 1dabbcea..a9139fdb 100644
--- a/src/renderer/src/components/sidebar/sidebar.tsx
+++ b/src/renderer/src/components/sidebar/sidebar.tsx
@@ -18,11 +18,11 @@ import "./sidebar.scss";
import { buildGameDetailsPath } from "@renderer/helpers";
-import SteamLogo from "@renderer/assets/steam-logo.svg?react";
import { SidebarProfile } from "./sidebar-profile";
import { sortBy } from "lodash-es";
import cn from "classnames";
import { CommentDiscussionIcon } from "@primer/octicons-react";
+import { SidebarGameItem } from "./sidebar-game-item";
const SIDEBAR_MIN_WIDTH = 200;
const SIDEBAR_INITIAL_WIDTH = 250;
@@ -167,38 +167,6 @@ export function Sidebar() {
}
};
- const SidebarGame = ({ game }: { game: LibraryGame }) => (
-
-
-
- );
-
return (