interface UseThemeChoiceResult

Returned by useThemeChoice to ThemeProvider.

Type Parameters

T extends string

Properties

local: T | null

This browser's own choice, which an account without one takes.

set: (next: T) => void

Applies next, stores it here, and saves it to the account when signed in.

Usage

import { type UseThemeChoiceResult } from "src/hooks/theme/useThemeChoice.ts";