Refactor application structure and simplify implementation

This commit is contained in:
2026-07-22 00:08:09 +03:00
parent dbba3806cc
commit 90b2eb507c
74 changed files with 11362 additions and 6814 deletions
+5 -6
View File
@@ -1,21 +1,20 @@
import { BusyRing } from './BusyRing';
import { BusyRing } from "./BusyRing";
export type StatusPillTone = 'ok' | 'warning' | 'error' | 'checking' | 'muted';
export type StatusPillTone = "ok" | "warning" | "error" | "checking" | "muted";
export interface StatusPillProps {
tone?: StatusPillTone;
children: string;
}
export function StatusPill({ tone = 'muted', children }: StatusPillProps) {
export function StatusPill({ tone = "muted", children }: StatusPillProps) {
return (
<span
className={`ui-status-pill ui-status-pill--${tone}`}
aria-busy={tone === 'checking' || undefined}
aria-busy={tone === "checking" || undefined}
>
{tone === 'checking' ? <BusyRing /> : null}
{tone === "checking" ? <BusyRing /> : null}
{children}
</span>
);
}