bananas-commerce-admin
Version:
What's this, an admin for apes?
10 lines • 428 B
JavaScript
import { createContext, useContext } from "react";
export const CardContext = createContext(undefined);
export const useCardContext = () => {
const context = useContext(CardContext);
if (context == null) {
throw new Error("useCardContext must be used within a CardProvider. You are most likely not using the correct <Card> parent component.");
}
return context;
};
//# sourceMappingURL=CardContext.js.map