feat: init
This commit is contained in:
16
apps/web/core/components/gantt-chart/contexts/index.tsx
Normal file
16
apps/web/core/components/gantt-chart/contexts/index.tsx
Normal file
@@ -0,0 +1,16 @@
|
||||
import { createContext, useContext } from "react";
|
||||
|
||||
export enum ETimeLineTypeType {
|
||||
ISSUE = "ISSUE",
|
||||
MODULE = "MODULE",
|
||||
PROJECT = "PROJECT",
|
||||
GROUPED = "GROUPED",
|
||||
}
|
||||
|
||||
export const TimeLineTypeContext = createContext<ETimeLineTypeType | undefined>(undefined);
|
||||
|
||||
export const useTimeLineType = () => {
|
||||
const timelineType = useContext(TimeLineTypeContext);
|
||||
|
||||
return timelineType;
|
||||
};
|
||||
Reference in New Issue
Block a user