Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Latest commit

 

History

History
32 lines (25 loc) · 635 Bytes

File metadata and controls

32 lines (25 loc) · 635 Bytes

slotegrator-betting-react-example

React Slotegrator Betting Render Example

type Props = {
   base64: string;
};
const BettingMarkup = ({ base64 }: Props) => {
   const setIsSignInModalOpen = useModalsStore.use.setIsSignInModalOpen();

   useEffect(() => {
      const content = new BettingContent(base64, {
         target: 'bettech1',
         debug: true,
         onLogin: () => {
            setIsSignInModalOpen(true);
         },
      });

      content.inject();

      return () => {
         content.cleanup();
      };
   }, []);

   return <div id="bettech1"></div>;
};

export default BettingMarkup;