'use client'
import {ChangePasswordDialog} from '@/components/composites/dialogs/change-password-dialog'
import {RealnameAuthDialog} from '@/components/composites/dialogs/realname-auth-dialog'
import {User} from '@/lib/models'

export function PasswordSetupWrapper({profile}: {profile: User}) {
  return (
    <>
      <RealnameAuthDialog
        hasAuthenticated={!!profile.id_token}
        triggerClassName="hidden"
        defaultOpen={!profile.id_token}
      />

      <ChangePasswordDialog
        triggerClassName="hidden"
        defaultOpen={profile.has_password}
      />
    </>
  )
}
