mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
build(react): build26 from 45504a2b
This commit is contained in:
Vendored
+14
@@ -0,0 +1,14 @@
|
||||
"use client";
|
||||
import { useCallback } from "react";
|
||||
//#region src/utils/use-attach-iframe.ts
|
||||
function useAttachIframe(media) {
|
||||
return useCallback((element) => {
|
||||
if (element) media.attach?.(element);
|
||||
else media.detach?.();
|
||||
return () => media.detach?.();
|
||||
}, [media]);
|
||||
}
|
||||
//#endregion
|
||||
export { useAttachIframe };
|
||||
|
||||
//# sourceMappingURL=use-attach-iframe.js.map
|
||||
Reference in New Issue
Block a user