mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-04-17 19:08:11 -05:00
* Initial * Progress * Recent winners * Add button * Progress * Mobile nav initial * UI tweaks * Overflow * AnythingAdder links to places * Remove color for tournament showcase * Adjust SQ top banner based on if season is on right or not * Tournament participant count fixed * Log out * todo * Progress * Nav complete * Done? * Fix lint * Translate settings
9 lines
212 B
TypeScript
9 lines
212 B
TypeScript
import { useMatches } from "@remix-run/react";
|
|
import type { RootLoaderData } from "~/root";
|
|
|
|
export function useUser() {
|
|
const [root] = useMatches();
|
|
|
|
return (root.data as RootLoaderData | undefined)?.user;
|
|
}
|