22 lines
637 B
JavaScript
22 lines
637 B
JavaScript
// Module ID: 5922
|
|
// Function ID: 5923
|
|
// Name: useCardAnimation
|
|
// Dependencies: [19, 5916]
|
|
// Exports: useCardAnimation
|
|
|
|
// Module 5922 (useCardAnimation)
|
|
import CardAnimationContext from "CardAnimationContext" /* 5916 */;
|
|
import closure_2 from "noop" /* 19 */;
|
|
|
|
require = arg1;
|
|
|
|
export const useCardAnimation = function useCardAnimation() {
|
|
const context = React.useContext(CardAnimationContext.CardAnimationContext);
|
|
if (undefined === context) {
|
|
const _Error = Error;
|
|
error = new Error("Couldn't find values for card animation. Are you inside a screen in Stack?");
|
|
throw error;
|
|
} else {
|
|
return context;
|
|
}
|
|
};
|