Art & Culture

greek philosophy and its origins

fall of icarus

some text for filling up the page

import { Loader } from "lucide-react";
import { Container } from "~/components/common/container.component";
import { ProfileForm } from "~/components/forms/users/profile-form.component";
import { useConfig } from "~/context/config.context";

export default function ProfileRoute() {
	const { user, isLoading } = useConfig();

	return (
		<div>
			<Container className="">
				<div className="space-y-12">
					<h1 className="uppercase font-black text-3xl tracking-tight">
						Profile
					</h1>

					{user ? (
						<div className="max-w-3xl">
							<ProfileForm user={user} />
						</div>
					) : isLoading ? (
						<div className="flex items-center justify-center">
							<Loader className="size-6 animate-spin text-muted-foreground" />
						</div>
					) : (
						<p className="text-center text-destructive font-grotesk uppercase text-xl font-bold">
							Failed to load your profile
						</p>
					)}
				</div>
			</Container>
		</div>
	);
}

inline-code-block

  • #genz
  • #anothertag

comments

More like this

No recommended articles yet.