'use client'; import { cn, text } from '@/styles/theme'; import { useAppchainBridgeContext } from './AppchainBridgeProvider'; interface AppchainBridgeNetworkProps { type: 'from' | 'to'; label: string; } export const AppchainBridgeNetwork = ({ type, label, }: AppchainBridgeNetworkProps) => { const { from, to } = useAppchainBridgeContext(); const displayNetwork = type === 'from' ? from.name : to.name; const displayIcon = type === 'from' ? from.icon : to.icon; return (
{label}
{displayIcon}
{displayNetwork}
); };