Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
33 lines
1.1 KiB
TypeScript
33 lines
1.1 KiB
TypeScript
// Module ID: 11159
|
|
// Function ID: 11160
|
|
// Name: useCoachmark
|
|
// Dependencies: [19, 21, 1256, 11160, 7171, 11166, 2]
|
|
// Exports: useCoachmark
|
|
|
|
// Module 11159 (useCoachmark)
|
|
import AnimatedCoachmark from "AnimatedCoachmark" /* 11166 */;
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
const require = globalThis.__r;
|
|
|
|
require = fn;
|
|
const jsx = fn(21).jsx;
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("design/components/Coachmark/native/useCoachmark.native.tsx");
|
|
|
|
export const useCoachmark = function useCoachmark(targetRef, memo) {
|
|
_require = memo;
|
|
let context;
|
|
let obj = require("v1");
|
|
context = noop.useContext(require("LayerContext").LayerContext);
|
|
const items = [context, memo];
|
|
const callback = noop.useCallback((arg0, targetMeasurements, surfaceMeasurements) => {
|
|
const obj = {};
|
|
const merged = Object.assign(closure_0);
|
|
obj.targetMeasurements = targetMeasurements;
|
|
obj.surfaceMeasurements = surfaceMeasurements;
|
|
context.add(arg0, jsx(AnimatedCoachmark.AnimatedCoachmark, {}));
|
|
}, items);
|
|
const ref = noop.useRef(require("v1").v4());
|
|
return require("useTooltip").useTooltipHelper(ref, targetRef, callback);
|
|
};
|