mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-09-16 20:00:35 +00:00
12 lines
331 B
TypeScript
12 lines
331 B
TypeScript
import { intl } from "src/locale";
|
|
|
|
interface Props {
|
|
enabled: boolean;
|
|
}
|
|
export function StatusFormatter({ enabled }: Props) {
|
|
if (enabled) {
|
|
return <span className="badge bg-lime-lt">{intl.formatMessage({ id: "online" })}</span>;
|
|
}
|
|
return <span className="badge bg-red-lt">{intl.formatMessage({ id: "offline" })}</span>;
|
|
}
|