15 lines
678 B
TypeScript
15 lines
678 B
TypeScript
// Metro module 8430 (f8431).
|
|
import { useRef, useContext, useCallback } from "react";
|
|
import { v4 } from "../../../../_bundle/Module514";
|
|
import { useTooltipHelper } from "../../Tooltip/native/useTooltip.native";
|
|
import { LayerContext } from "../../Layers/native/LayerContext.native";
|
|
import { AnimatedCoachmark } from "./AnimatedCoachmark.native";
|
|
export function useCoachmark(a0, a1) {
|
|
const ref = useRef(v4());
|
|
let c16563_0 = a1;
|
|
const context = useContext(LayerContext);
|
|
return useTooltipHelper(ref, a0, useCallback((a0, a1, a2) => {
|
|
context.add(a0, <AnimatedCoachmark {...c16563_0} targetMeasurements={a1} surfaceMeasurements={a2} />);
|
|
}, [context, a1]));
|
|
}
|