"use strict"; /** * Game Iframe SDK - React Hook * Custom hook để sử dụng SDK trong React components * * @example * ```tsx * import { useGameIframeSDK } from 'game-iframe-sdk/react'; * * function GamePlayer() { * const iframeRef = useRef(null); * * const { * isReady, * sendGameData, * sendLeaderboard * } = useGameIframeSDK({ * iframeRef, * iframeOrigin: 'http://senaai.vn:1357', * onGameReady: () => console.log('Game ready!'), * onAnswerReport: (data) => submitToServer(data), * onFinalResult: (data) => showResults(data), * }); * * return