"use client";
import Link from "next/link";
import { useState } from "react";
import { routes } from "@/lib/routes";
import { cn } from "@/lib/utils";
const HABIT_LOGO_SRC = "/habit-logo.png";
type HabitBrandProps = {
className?: string;
href?: string;
"aria-current"?: "page" | undefined;
};
export function HabitBrand({
className,
href = routes.avatar,
"aria-current": ariaCurrent,
}: HabitBrandProps) {
const [useText, setUseText] = useState(false);
return (
{!useText ? (
// eslint-disable-next-line @next/next/no-img-element
setUseText(true)}
/>
) : (
HaBit
)}
);
}