import { usePlatformApi } from '@wix/yoshi-flow-bm';
export function usePlatformApiCompat() {
    try {
        // eslint-disable-next-line react-hooks/rules-of-hooks
        return usePlatformApi() ?? {};
    }
    catch (e) {
        console.error(e);
        return {};
    }
}
//# sourceMappingURL=usePlatformApiCompat.js.map