mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-26 07:38:33 -06:00
19 lines
363 B
TypeScript
19 lines
363 B
TypeScript
"use client";
|
|
import { createContext, useContext } from "react";
|
|
|
|
export interface CourseContextInterface {
|
|
courseName: string;
|
|
}
|
|
|
|
const defaultValue: CourseContextInterface = {
|
|
courseName: "",
|
|
};
|
|
|
|
export const CourseContext =
|
|
createContext<CourseContextInterface>(defaultValue);
|
|
|
|
export function useCourseContext() {
|
|
return useContext(CourseContext);
|
|
}
|
|
|