import React from "react"; import { FormField, FormItem, FormLabel, FormControl, FormMessage, FormDescription } from "@/components/ui/form"; import { Input } from "@/components/ui/input"; import { Control } from "react-hook-form"; import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; interface ServerThresholdFieldsProps { control: Control; } export const ServerThresholdFields: React.FC = ({ control }) => { return (
Server Resource Thresholds
( CPU Threshold (%) field.onChange(Number(e.target.value))} /> CPU usage percentage that triggers an alert )} /> ( RAM Threshold (%) field.onChange(Number(e.target.value))} /> Memory usage percentage that triggers an alert )} /> ( Disk Threshold (%) field.onChange(Number(e.target.value))} /> Disk usage percentage that triggers an alert )} /> ( Network Threshold (%) field.onChange(Number(e.target.value))} /> Network usage percentage that triggers an alert )} />
); };