/**
 * Shared file settings component
 * Used by both HazoEditFieldDialog and HazoEditGroupDialog
 *
 * Provides dropdown selectors for FileAcceptMode:
 * - Public files: none | basic_upload | ai_upload
 * - Private files: none | basic_upload
 */
'use client';
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
/**
 * FileSettings - Dropdown selectors for file upload mode
 *
 * - "Public Files" controls accept_public_files (none | basic_upload | ai_upload)
 * - "Private Files" controls accept_private_files (none | basic_upload)
 */
export function FileSettings({ accept_public_files, on_accept_public_files_change, accept_private_files, on_accept_private_files_change, id_prefix = '', className, }) {
    const public_files_id = `${id_prefix}accept_public_files`;
    const private_files_id = `${id_prefix}accept_private_files`;
    return (_jsxs("div", { className: className, children: [_jsxs("div", { className: "flex items-center space-x-2", children: [_jsx("label", { htmlFor: public_files_id, className: "text-sm font-medium leading-none cursor-pointer", children: "Public Files" }), _jsxs("select", { id: public_files_id, value: accept_public_files, onChange: (e) => on_accept_public_files_change(e.target.value), className: "px-2 py-1 border rounded text-sm focus:outline-none focus:ring-2 focus:ring-primary/40", children: [_jsx("option", { value: "none", children: "None" }), _jsx("option", { value: "basic_upload", children: "Basic Upload" }), _jsx("option", { value: "ai_upload", children: "AI Upload" })] })] }), _jsxs("div", { className: "flex items-center space-x-2 mt-2", children: [_jsx("label", { htmlFor: private_files_id, className: "text-sm font-medium leading-none cursor-pointer", children: "Private Files" }), _jsxs("select", { id: private_files_id, value: accept_private_files, onChange: (e) => on_accept_private_files_change(e.target.value), className: "px-2 py-1 border rounded text-sm focus:outline-none focus:ring-2 focus:ring-primary/40", children: [_jsx("option", { value: "none", children: "None" }), _jsx("option", { value: "basic_upload", children: "Basic Upload" })] })] })] }));
}
/**
 * @deprecated Use FileSettings instead. This component is kept for backward compatibility.
 */
export const FileSettingsCheckboxes = FileSettings;
//# sourceMappingURL=file_settings_checkboxes.js.map