@carbon/ibm-products
Version:
Carbon for IBM Products
16 lines (14 loc) • 454 B
JavaScript
/**
* Copyright IBM Corp. 2020, 2026
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import { createContext, useContext } from "react";
//#region src/components/Coachmark/utils/context.ts
const CoachmarkContext = createContext(null);
const useCoachmark = () => {
return useContext(CoachmarkContext);
};
//#endregion
export { CoachmarkContext, useCoachmark };