17 lines
447 B
TypeScript
17 lines
447 B
TypeScript
import * as React from "react";
|
|
|
|
export interface StatusDotProps {
|
|
/** `live` auto-pulses in accent; others are static. */
|
|
status?: "live" | "ok" | "warn" | "error" | "idle";
|
|
/** Force the pulsing ring on any status. */
|
|
pulse?: boolean;
|
|
size?: number;
|
|
label?: string;
|
|
style?: React.CSSProperties;
|
|
}
|
|
|
|
/**
|
|
* Small colored status dot; pulses for live/on-air channels.
|
|
*/
|
|
export function StatusDot(props: StatusDotProps): JSX.Element;
|