Files
pterodactyl-panel/resources/scripts/components/dashboard/ServerRowMetrics.tsx
T
6c0413e39b Start 2.0 development
Co-authored-by: Anthony <anthony@infraly.co>
Co-authored-by: Sky Mulley <daniel.mulley@outlook.com>
2026-10-05 18:10:18 -04:00

12 lines
583 B
TypeScript

import type React from 'react';
import type { LucideIcon } from 'lucide-react';
import { cn } from '@/lib/cn';
export const ServerRowMetricIcon = ({ $alarm, icon: IconComponent }: { $alarm: boolean; icon: LucideIcon }) => (
<IconComponent size={'1em'} className={cn('inline-block', $alarm ? 'text-destructive' : 'text-muted-foreground')} />
);
export function ServerRowMetricDescription({ $alarm, children }: { $alarm: boolean; children: React.ReactNode }) {
return <p className={cn('text-sm ml-2', $alarm ? 'text-destructive' : 'text-muted-foreground')}>{children}</p>;
}