import type { ReactNode } from "react"; import { initials } from "../../lib/format"; import { Icon } from "./Icon"; export function Avatar({ name, size = 30 }: { name: string; size?: number }) { return {initials(name)}; } export function SearchInput({ value, onChange, placeholder = "Search" }: { value: string; onChange: (v: string) => void; placeholder?: string }) { return ( ); } export function Stat({ label, value, tone = "neutral", hint, onClick, selected = false }: { label: string; value: ReactNode; tone?: "neutral" | "warning" | "danger" | "success"; hint?: string; onClick?: () => void; selected?: boolean }) { const body = ( <> {label} {value} {hint && {hint}} > ); if (!onClick) return