import * as grids from "@snk/types/__fixtures__/grid" ; import * as snakes from "@snk/types/__fixtures__/snake" ; import type { Snake } from "@snk/types/snake" ; import type { Grid } from "@snk/types/grid" ; const sp = new URLSearchParams ( window . location . search ) ; const gLabel = sp . get ( "grid" ) || "simple" ; const sLabel = sp . get ( "snake" ) || "snake3" ; export const grid = grids [ gLabel ] || grids . simple ; export const snake = snakes [ sLabel ] || snakes . snake3 ;