'use client' import React, { useState } from 'react' import { ControlType } from '@/lib/sdk' export function AddControlForm({ onSubmit, onCancel, }: { onSubmit: (data: { name: string; description: string; type: ControlType; category: string; owner: string }) => void onCancel: () => void }) { const [formData, setFormData] = useState({ name: '', description: '', type: 'TECHNICAL' as ControlType, category: '', owner: '', }) return (