refactor(data): add mock API adapters, id utility, and toast feedback
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import { mockGames } from "@/lib/mock"
|
||||
|
||||
export function listGames() {
|
||||
return mockGames
|
||||
}
|
||||
|
||||
export function getGameById(gameId: string) {
|
||||
return mockGames.find((game) => game.id === gameId)
|
||||
}
|
||||
Reference in New Issue
Block a user