chat / client /src /Providers /DashboardContext.tsx
helloya20's picture
Upload 2345 files
f0743f4 verified
import { createContext, useContext } from 'react';
type TDashboardContext = {
prevLocationPath: string;
};
export const DashboardContext = createContext<TDashboardContext>({} as TDashboardContext);
export const useDashboardContext = () => useContext(DashboardContext);