/* ==========================================================================
Beacon.tsx
--------------------------------------------------------------------------
Replaces the `react-status-beacon` dependency.
The source rendered .
The colour is now a single `color` prop and the pulse is pure CSS, so it
honours prefers-reduced-motion. See .sb__beacon in status-banner.css.
========================================================================== */
(function (SB: any) {
"use strict";
interface BeaconProps {
color?: string;
}
function Beacon(props: BeaconProps) {
const color = props.color;
const style = color ? { background: color } : undefined;
return (
);
}
SB.Beacon = Beacon;
})((window as any).SB = (window as any).SB || {});