mirror of
				https://github.com/hydralauncher/hydra.git
				synced 2025-03-09 15:40:26 +00:00 
			
		
		
		
	readonly props
This commit is contained in:
		
							parent
							
								
									96719fa1da
								
							
						
					
					
						commit
						0481a08dd3
					
				
					 1 changed files with 7 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -3,15 +3,17 @@ import { LibraryGame } from "@types";
 | 
			
		|||
import cn from "classnames";
 | 
			
		||||
import { useLocation } from "react-router-dom";
 | 
			
		||||
 | 
			
		||||
interface SidebarGameItemProps {
 | 
			
		||||
  game: LibraryGame;
 | 
			
		||||
  handleSidebarGameClick: (event: React.MouseEvent, game: LibraryGame) => void;
 | 
			
		||||
  getGameTitle: (game: LibraryGame) => string;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export function SidebarGameItem({
 | 
			
		||||
  game,
 | 
			
		||||
  handleSidebarGameClick,
 | 
			
		||||
  getGameTitle,
 | 
			
		||||
}: {
 | 
			
		||||
  game: LibraryGame;
 | 
			
		||||
  handleSidebarGameClick: (event: React.MouseEvent, game: LibraryGame) => void;
 | 
			
		||||
  getGameTitle: (game: LibraryGame) => string;
 | 
			
		||||
}) {
 | 
			
		||||
}: Readonly<SidebarGameItemProps>) {
 | 
			
		||||
  const location = useLocation();
 | 
			
		||||
 | 
			
		||||
  return (
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue