readonly props

This commit is contained in:
Leandro Perin 2025-02-04 20:20:32 -03:00
parent 96719fa1da
commit 0481a08dd3

View file

@ -3,15 +3,17 @@ import { LibraryGame } from "@types";
import cn from "classnames"; import cn from "classnames";
import { useLocation } from "react-router-dom"; import { useLocation } from "react-router-dom";
interface SidebarGameItemProps {
game: LibraryGame;
handleSidebarGameClick: (event: React.MouseEvent, game: LibraryGame) => void;
getGameTitle: (game: LibraryGame) => string;
}
export function SidebarGameItem({ export function SidebarGameItem({
game, game,
handleSidebarGameClick, handleSidebarGameClick,
getGameTitle, getGameTitle,
}: { }: Readonly<SidebarGameItemProps>) {
game: LibraryGame;
handleSidebarGameClick: (event: React.MouseEvent, game: LibraryGame) => void;
getGameTitle: (game: LibraryGame) => string;
}) {
const location = useLocation(); const location = useLocation();
return ( return (