29 lines
679 B
TypeScript
29 lines
679 B
TypeScript
import { Game } from "@/types/Game";
|
|
|
|
export const games = [
|
|
{
|
|
id: "tetris",
|
|
name: "Block Drop",
|
|
entryFee: "0.1 SOL",
|
|
thumbnail: "/duelfiassets/Block Drop Game Cover Illustration.png",
|
|
isAvailable: true
|
|
},
|
|
{
|
|
id: "snakes",
|
|
name: "Venom Trail",
|
|
entryFee: "0.02 ETH",
|
|
thumbnail: "/duelfiassets/Venom Trail Game Cover Illustration.png",
|
|
isAvailable: true
|
|
},
|
|
{
|
|
id: "bubbles",
|
|
name: "Wall Smash",
|
|
entryFee: "0.05 ETH",
|
|
thumbnail: "/duelfiassets/Wall Smash Game Cover Illustration.png",
|
|
isAvailable: true
|
|
}
|
|
];
|
|
|
|
export function GetGameByID(id:string):Game | undefined{
|
|
return games.find((game)=> game.id == id);
|
|
} |