mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 23:16:49 +00:00
15 lines
386 B
JavaScript
15 lines
386 B
JavaScript
/* eslint-disable */
|
|
import { useEffect } from 'react'
|
|
import { loadExternalResource } from '@/lib/utils'
|
|
|
|
const Sakura = () => {
|
|
useEffect(() => {
|
|
loadExternalResource('/js/sakura.js', 'js').then(url => {
|
|
window.createSakura && window.createSakura({})
|
|
})
|
|
return () => window.destroySakura && window.destroySakura()
|
|
}, [])
|
|
return <></>
|
|
}
|
|
|
|
export default Sakura |