You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
657 B
TypeScript
28 lines
657 B
TypeScript
// frontend/components/dashboard/MiniRow.tsx
|
|
import type { CSSProperties } from "react";
|
|
import { Icon } from "@/components/Icon";
|
|
import type { IconName } from "@/components/icons/paths";
|
|
import type { Tone } from "@/lib/types";
|
|
|
|
export function MiniRow({
|
|
tone,
|
|
icon,
|
|
text,
|
|
sub,
|
|
}: {
|
|
tone: Tone;
|
|
icon: string;
|
|
text: string;
|
|
sub: string;
|
|
}) {
|
|
return (
|
|
<div className="mini-row">
|
|
<span className="mini-ic" style={{ "--tone": `var(--${tone})` } as CSSProperties}>
|
|
<Icon name={icon as IconName} />
|
|
</span>
|
|
<span className="mini-text">{text}</span>
|
|
<span className="mini-sub">{sub}</span>
|
|
</div>
|
|
);
|
|
}
|