'use client' import { Cloud } from 'lucide-react' import { useState } from 'react' import { useAuth } from '../lib/auth/hooks' import { ProfileDropdown } from './profile-dropdown' import { PropertyDropdown } from './property-dropdown' import { SignInDialog } from './sign-in-dialog' /** * CloudSaveButton - Shows authentication state and property management * * Not authenticated: Shows "Save to cloud" button * Authenticated: Shows PropertyDropdown and ProfileDropdown */ export function CloudSaveButton() { const { isAuthenticated, isLoading } = useAuth() const [isSignInDialogOpen, setIsSignInDialogOpen] = useState(false) if (isLoading) { return (
) } if (!isAuthenticated) { return ( <>
) } return (
) }