'use client';
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { Toggle } from '../components/ui/Toggle.js';
export function ToggleField({ label, value = false, onChange, helpText }) {
    return (_jsxs("div", { className: "flex items-center justify-between", children: [_jsxs("div", { children: [_jsx("span", { className: "text-sm font-medium", children: label }), helpText && _jsx("p", { className: "text-xs text-[var(--muted-foreground)]", children: helpText })] }), _jsx(Toggle, { checked: value, onCheckedChange: onChange, "aria-label": label })] }));
}
//# sourceMappingURL=ToggleField.js.map