decord/source/5922_useCardAnimation.js

23 lines
637 B
JavaScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 5922
// Function ID: 5923
2026-08-24 06:08:38 +00:00
// Name: useCardAnimation
2026-08-25 06:04:03 +00:00
// Dependencies: [19, 5916]
2026-08-24 06:08:38 +00:00
// Exports: useCardAnimation
2026-08-25 06:04:03 +00:00
// Module 5922 (useCardAnimation)
import CardAnimationContext from "CardAnimationContext" /* 5916 */;
2026-08-24 06:08:38 +00:00
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;
}
};