UNPKG

400 BJavaScriptView Raw
1import * as React from 'react';
2import CardAnimationContext from './CardAnimationContext';
3export default function useCardAnimation() {
4 const animation = React.useContext(CardAnimationContext);
5
6 if (animation === undefined) {
7 throw new Error("Couldn't find values for card animation. Are you inside a screen in Stack?");
8 }
9
10 return animation;
11}
12//# sourceMappingURL=useCardAnimation.js.map
\No newline at end of file