"use client"; import { formatAddress } from "@/format"; import { cn } from "@/ui"; import { motion, AnimatePresence } from "motion/react"; import { HTMLAttributes } from "react"; import { Address } from "viem"; interface NameUiProps extends HTMLAttributes { address: Address; name?: string | null; } export function NameUi({ address, name, className, ...props }: NameUiProps) { return (
{name ?? formatAddress({ address })}
); }