10 lines
194 B
TypeScript
10 lines
194 B
TypeScript
import { mockGames } from "@/lib/mock"
|
|
|
|
export function listGames() {
|
|
return mockGames
|
|
}
|
|
|
|
export function getGameById(gameId: string) {
|
|
return mockGames.find((game) => game.id === gameId)
|
|
}
|