import { useState } from "react" import { useSystemdUnit } from "@/services/api/hooks" import type { SystemdInfo } from "@/types" interface SystemdPanelProps { name: string systemd: SystemdInfo } export function SystemdPanel({ name, systemd }: SystemdPanelProps) { const [showUnit, setShowUnit] = useState(false) const { data: unitData } = useSystemdUnit(name, showUnit) return (
{unitData.service}
{unitData.timer}