yoosangwook 4daa92b39e ✏️fix: Make a comment
- popup 관련 파일에 주석 추가
2025-01-03 17:38:18 +09:00

17 lines
447 B
JavaScript

'use client'
import { Fragment } from 'react'
import { useRecoilValue } from 'recoil'
import { popupState } from '@/store/popupAtom'
/**
* 팝업 관리자
*/
export default function PopupManager() {
const popup = useRecoilValue(popupState)
return [
...popup?.config.map((child) => <Fragment key={child.id}>{child.component}</Fragment>),
...popup?.other.map((child) => <Fragment key={child.id}>{child.component}</Fragment>),
]
}