Files
zkldi_Tachi/client/src/components/util/useUGPTBase.tsx
T
zkldi 54a0578ebc refactor: remove /dashboard prefix and change /users/ to /u/
This overhaul automatically redirects old routes to new routes
they served no purpose anyway and were link noise.
i don't like them
2022-12-19 02:31:35 +00:00

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]
);
}