import { useTranslation } from 'react-i18next' import { useAuthStore } from '@/stores/auth-store' import { Markdown } from '@/components/ui/markdown' import { PublicLayout } from '@/components/layout' import { Footer } from '@/components/layout/components/footer' import { CTA, Features, Hero, HowItWorks, Stats } from './components' import { useHomePageContent } from './hooks' export function Home() { const { t } = useTranslation() const { auth } = useAuthStore() const isAuthenticated = !!auth.user const { content, isLoaded, isUrl } = useHomePageContent() if (!isLoaded) { return (
{t('Loading...')}
) } if (content) { return (
{isUrl ? (