--- // Covers: icon / person-id / chart-data (left/right) / small-icon / // description-value / trending / button branches. import Icon from '@ui/Icon.astro' import Avatar from '@ui/Avatar.astro' import ChartSparkline from '@ui/ChartSparkline.astro' interface Props { icon?: string color?: string lt?: boolean title?: string | number description?: string class?: string id?: string personId?: number chartType?: string chartPosition?: string chartData?: string | number smallIcon?: string descriptionValue?: string descriptionValueColor?: string } const { icon, color, lt, title, description, class: className, id, personId, chartType = 'line', chartPosition = 'right', chartData, smallIcon, descriptionValue, descriptionValueColor } = Astro.props const chartColor = color ?? 'primary' const avatarClass = [color ? `bg-${color}${lt ? '-lt' : ' text-white'}` : '', 'avatar', 'avatar-square'] ---
{ icon ? (
) : personId ? (
) : chartData && chartPosition === 'left' ? (
) : null }
{title ?? 1700} {smallIcon && } {descriptionValue && {descriptionValue}}
{description ?? 'Users'}
{ chartData && chartPosition === 'right' && (
) }