1 | import * as React from 'react';
|
2 | import CardAnimationContext from './CardAnimationContext';
|
3 | export 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 |