mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-07 06:18:03 +03:00
This overhaul automatically redirects old routes to new routes they served no purpose anyway and were link noise. i don't like them
10 lines
254 B
TypeScript
10 lines
254 B
TypeScript
import { useMemo } from "react";
|
|
import { UGPT } from "types/react";
|
|
|
|
export default function useUGPTBase({ reqUser, game, playtype }: UGPT) {
|
|
return useMemo(
|
|
() => `/u/${reqUser.username}/games/${game}/${playtype}`,
|
|
[reqUser, game, playtype]
|
|
);
|
|
}
|