mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-13 15:09:13 +00:00
15 lines
348 B
JavaScript
15 lines
348 B
JavaScript
import { useEffect } from 'react'
|
|
import { loadExternalResource } from '@/lib/utils'
|
|
|
|
const Nest = () => {
|
|
useEffect(() => {
|
|
loadExternalResource('/js/nest.js', 'js').then(url => {
|
|
window.createNest && window.createNest()
|
|
})
|
|
return () => window.destroyNest && window.destroyNest()
|
|
}, [])
|
|
return <></>
|
|
}
|
|
|
|
export default Nest
|