import clsx from 'clsx' import { getDisplayNameForChainId } from '@dao-dao/utils' import { ChainLogo } from './ChainLogo' export type ChainLabelProps = { /** * Chain ID. */ chainId: string /** * Whether or not to display in header mode. Defaults to false. */ header?: boolean /** * Whether or not to display in title mode. Defaults to false. */ title?: boolean /** * Optional container class name. */ className?: string } export const ChainLabel = ({ chainId, header, title, className, }: ChainLabelProps) => (
{header ? ( <> ) : ( )}

{getDisplayNameForChainId(chainId)}

)