"use client"; /* * Documentation: * Stats Card — https://app.subframe.com/f023064a5ca0/library?component=Stats+Card_63f809c7-22ef-47f8-9fb9-0f33b252be3f */ import React from "react"; import { FeatherArrowRight } from "@subframe/core"; import { FeatherDollarSign } from "@subframe/core"; import { FeatherTrendingDown } from "@subframe/core"; import { FeatherTrendingUp } from "@subframe/core"; import * as SubframeCore from "@subframe/core"; import * as SubframeUtils from "../../utils"; export interface StatsCardRootProps extends React.HTMLAttributes { trend?: "positive" | "negative" | "neutral"; label?: React.ReactNode; value?: React.ReactNode; percentage?: React.ReactNode; comparisonText?: React.ReactNode; icon?: React.ReactNode; className?: string; } const StatsCardRoot = React.forwardRef( function StatsCardRoot( { trend = "positive", label, value, percentage, comparisonText, icon = , className, ...otherProps }: StatsCardRootProps, ref ) { return (
{label ? ( {label} ) : null} {icon ? ( {icon} ) : null}
{value ? ( {value} ) : null}
{percentage ? ( {percentage} ) : null}
{comparisonText ? ( {comparisonText} ) : null}
); } ); export const StatsCard = StatsCardRoot;