"use client"

import { LoginDialog } from "@/components/login-dialog"
import { useLoginDialogStore } from "@/store/login-dialog"

export function GlobalLoginDialog() {
  const { open, closeLoginDialog } = useLoginDialogStore()
  return <LoginDialog open={open} onOpenChange={(v) => !v && closeLoginDialog()} />
}
