"use client"; import { useState } from "react"; interface ChannelPasswordModalProps { label: string; onSubmit: (password: string) => void; onCancel: () => void; } export function ChannelPasswordModal({ label, onSubmit, onCancel, }: ChannelPasswordModalProps) { const [value, setValue] = useState(""); const handleSubmit = (e: React.FormEvent) => { e.preventDefault(); if (value.trim()) onSubmit(value.trim()); }; return (