mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-09-17 04:10:35 +00:00
React
This commit is contained in:
11
frontend/src/components/Table/Formatter/StatusFormatter.tsx
Normal file
11
frontend/src/components/Table/Formatter/StatusFormatter.tsx
Normal file
@@ -0,0 +1,11 @@
|
||||
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>;
|
||||
}
|
Reference in New Issue
Block a user