zebflow 0.11.6

Reactive web automation platform — pipelines, templates, and real-time collaboration in a single binary.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import { cx } from "zeb/react";

/** The one status line the explorer and the upload dialog share. */
export function FilesMessage({ text, tone, className = "" }) {
  if (!text) return null;
  return (
    <div className={cx(
      "rounded border px-3 py-2 text-[0.76rem]",
      tone === "error" && "border-red-500/40 bg-red-500/10 text-red-300",
      tone === "ok" && "border-emerald-500/40 bg-emerald-500/10 text-emerald-300",
      tone === "muted" && "border-border bg-muted text-muted-foreground",
      className,
    )}>
      {text}
    </div>
  );
}