import { Button } from '@/components/ui/button' import { ExternalLink } from '@/lib/icons' import { Pill } from '../primitives' import { openExternal } from './open-external' import type { BillingAccountRowView } from './use-billing-state' export function RowValue({ onAction, row }: { onAction?: () => void; row: BillingAccountRowView }) { // Destructure to a const so narrowing survives into the onClick closure below. const { action } = row return (
{row.value && ( {row.value} )} {row.pill && {row.pill.label}} {row.secondaryPill && {row.secondaryPill}} {row.chips?.map(chip => ( ))} {action && ( )}
) }