mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
15 lines
403 B
TypeScript
15 lines
403 B
TypeScript
import { useMantineTheme } from "@mantine/core"
|
|
import { createTss } from "tss-react"
|
|
import { useColorScheme } from "@/hooks/useColorScheme"
|
|
|
|
const useContext = () => {
|
|
// return anything here that will be accessible in tss.create()
|
|
|
|
const theme = useMantineTheme()
|
|
const colorScheme = useColorScheme()
|
|
|
|
return { theme, colorScheme }
|
|
}
|
|
|
|
export const { tss } = createTss({ useContext })
|