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