feat: add checkout process
This commit is contained in:
14
packages/web/src/hooks/usePaddle.ee.ts
Normal file
14
packages/web/src/hooks/usePaddle.ee.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import * as React from 'react';
|
||||
import { PaddleContext } from 'contexts/Paddle.ee';
|
||||
|
||||
type UsePaddleReturn = {
|
||||
loaded: boolean;
|
||||
};
|
||||
|
||||
export default function usePaddle(): UsePaddleReturn {
|
||||
const paddleContext = React.useContext(PaddleContext);
|
||||
|
||||
return {
|
||||
loaded: paddleContext.loaded,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user