refactor(ui): extract reusable component package
This commit is contained in:
parent
87261b5a3f
commit
2664804e91
86 changed files with 102 additions and 85 deletions
|
|
@ -1,23 +0,0 @@
|
|||
import type { UiStatusItem } from "../types";
|
||||
import { FooterCell } from "./FooterCell";
|
||||
|
||||
export interface StatusStripProps {
|
||||
id?: string;
|
||||
items: UiStatusItem[];
|
||||
compact?: boolean;
|
||||
}
|
||||
|
||||
export function StatusStrip({ id, items, compact = false }: StatusStripProps) {
|
||||
return (
|
||||
<section
|
||||
className="status-strip"
|
||||
data-compact={compact}
|
||||
data-model-id={id}
|
||||
data-variant={compact ? "cluster" : "system-bus"}
|
||||
>
|
||||
{items.map((item) => (
|
||||
<FooterCell key={item.id} item={item} />
|
||||
))}
|
||||
</section>
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue