2026-09-12 13:45:10 +00:00
|
|
|
// Module ID: 11261
|
|
|
|
|
// Function ID: 11262
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: useCoachmark
|
2026-09-12 13:45:10 +00:00
|
|
|
// Dependencies: [19, 21, 1256, 11262, 7260, 11268, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: useCoachmark
|
|
|
|
|
|
2026-09-12 13:45:10 +00:00
|
|
|
// Module 11261 (useCoachmark)
|
|
|
|
|
import AnimatedCoachmark from "AnimatedCoachmark" /* 11268 */;
|
2026-09-10 05:38:07 +00:00
|
|
|
import noop from "module_19" /* 19 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
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");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export const useCoachmark = function useCoachmark(targetRef, memo) {
|
2026-09-10 05:38:07 +00:00
|
|
|
_require = memo;
|
2026-07-29 08:29:29 +00:00
|
|
|
let context;
|
2026-09-10 05:38:07 +00:00
|
|
|
let obj = require("v1");
|
|
|
|
|
context = noop.useContext(require("LayerContext").LayerContext);
|
2026-07-29 08:29:29 +00:00
|
|
|
const items = [context, memo];
|
2026-09-10 05:38:07 +00:00
|
|
|
const callback = noop.useCallback((arg0, targetMeasurements, surfaceMeasurements) => {
|
2026-07-29 08:29:29 +00:00
|
|
|
const obj = {};
|
2026-09-10 05:38:07 +00:00
|
|
|
const merged = Object.assign(closure_0);
|
2026-07-29 08:29:29 +00:00
|
|
|
obj.targetMeasurements = targetMeasurements;
|
|
|
|
|
obj.surfaceMeasurements = surfaceMeasurements;
|
2026-09-10 05:38:07 +00:00
|
|
|
context.add(arg0, jsx(AnimatedCoachmark.AnimatedCoachmark, {}));
|
2026-07-29 08:29:29 +00:00
|
|
|
}, items);
|
2026-09-10 05:38:07 +00:00
|
|
|
const ref = noop.useRef(require("v1").v4());
|
|
|
|
|
return require("useTooltip").useTooltipHelper(ref, targetRef, callback);
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|