'use client'

import { usePopupController } from '@/store/popupController'

export default function Alert() {
  const { alertMsg, alertBtn } = usePopupController()

  return (
    <div className="modal-popup alert">
      <div className="modal-dialog">
        <div className="modal-content">
          <div className="alert-tit">{alertMsg}</div>
          <div className="alert-btn-wrap">
            <div className="alert-btn-bx">
              <button className="btn-frame red min" onClick={() => alertBtn()}>
                確認
              </button>
            </div>
          </div>
        </div>
      </div>
    </div>
  )
}
