@payfit/unity-components
Version:
11 lines (10 loc) • 318 B
JavaScript
import { createContext as e, useContext as t } from "react";
//#region src/components/card/Card.context.tsx
var n = e(null);
function r() {
let e = t(n);
if (!e) throw Error("Card compound components must be used within a Card component");
return e;
}
//#endregion
export { n as CardContext, r as useCardContext };