Files
SnowLuma/.pnpm-store/v11/files/25/c8d71068c1e8faef885c27e4ddd1845ba59412d23cdc7e3d2f234afdea7b71f57e282e9b4abed94278c676c358e858a6c0b9339af3b97bbd9fc83dff622208
T
TanTan 2a69b23b47
Dev Build / cleanup (push) Waiting to run
Dev Build / typecheck (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:27:07 +08:00

19 lines
578 B
Plaintext

import { isMotionComponent } from './is-motion-component.mjs';
import { motionComponentSymbol } from './symbol.mjs';
/**
* Unwraps a `motion` component and returns either a string for `motion.div` or
* the React component for `motion(Component)`.
*
* If the component is not a `motion` component it returns undefined.
*/
function unwrapMotionComponent(component) {
if (isMotionComponent(component)) {
return component[motionComponentSymbol];
}
return undefined;
}
export { unwrapMotionComponent };
//# sourceMappingURL=unwrap-motion-component.mjs.map