mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-05 01:19:29 +00:00
16 lines
446 B
TypeScript
16 lines
446 B
TypeScript
import { LicenseStatus } from "@server/license/license";
|
|
import { createContext } from "react";
|
|
|
|
type LicenseStatusContextType = {
|
|
licenseStatus: LicenseStatus | null;
|
|
updateLicenseStatus: (updatedSite: LicenseStatus) => void;
|
|
isLicenseViolation: () => boolean;
|
|
isUnlocked: () => boolean;
|
|
};
|
|
|
|
const LicenseStatusContext = createContext<
|
|
LicenseStatusContextType | undefined
|
|
>(undefined);
|
|
|
|
export default LicenseStatusContext;
|