import { Eye, EyeOff } from 'lucide-react'; type ChannelTokenFieldProps = { label: string; value: string; onChange: (value: string) => void; placeholder?: string; helpText?: string; disabled?: boolean; showSecret?: boolean; onToggleSecret?: () => void; showSecretLabel?: string; hideSecretLabel?: string; required?: boolean; }; export default function ChannelTokenField({ label, value, onChange, placeholder, helpText, disabled, showSecret, onToggleSecret, showSecretLabel, hideSecretLabel, required, }: ChannelTokenFieldProps) { const isSecretField = typeof showSecret === 'boolean' && typeof onToggleSecret === 'function'; return (
onChange(event.target.value)} placeholder={placeholder} disabled={disabled} autoComplete="off" type={isSecretField && !showSecret ? 'password' : 'text'} className="h-[56px] w-full rounded-[18px] border border-black/10 bg-[#fbf8f1] px-5 text-[15px] text-[#171717] outline-none transition-colors placeholder:text-[#98a2b3] focus:border-[#8ea8ff] disabled:cursor-not-allowed disabled:opacity-60 dark:border-white/10 dark:bg-[#1a1a1e] dark:text-gray-100 dark:placeholder:text-gray-500" />
{isSecretField ? ( ) : null}
{helpText ? (
{helpText}
) : null}
); }