464a480043
Might already fix #13793
14 lines
377 B
TypeScript
14 lines
377 B
TypeScript
import { type DateFormat } from '@/localization/constants/DateFormat';
|
|
import { type TimeFormat } from '@/localization/constants/TimeFormat';
|
|
import { createContext } from 'react';
|
|
|
|
export type UserContextType = {
|
|
dateFormat: DateFormat;
|
|
timeFormat: TimeFormat;
|
|
timeZone: string;
|
|
};
|
|
|
|
export const UserContext = createContext<UserContextType>(
|
|
{} as UserContextType,
|
|
);
|