mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-03-12 02:52:36 +01:00
8 lines
272 B
TypeScript
8 lines
272 B
TypeScript
|
|
import { createContext, useContext } from 'react';
|
||
|
|
type TDashboardContext = {
|
||
|
|
prevLocationPath: string;
|
||
|
|
};
|
||
|
|
|
||
|
|
export const DashboardContext = createContext<TDashboardContext>({} as TDashboardContext);
|
||
|
|
export const useDashboardContext = () => useContext(DashboardContext);
|