import React from 'react' import { Edit2, X, Plus, Save } from 'lucide-react' import { Channel } from '@/types/lofi' interface ChannelManagementProps { isAddingChannel: boolean setIsAddingChannel: (adding: boolean) => void newChannel: Channel setNewChannel: (channel: Channel) => void saveChannel: () => void currentTheme: string currentChannel: number handleEditChannel: (index: number) => void setShowDeleteConfirm: (channelIndex: number) => void } const ChannelManagement: React.FC = ({ isAddingChannel, setIsAddingChannel, newChannel, setNewChannel, saveChannel, currentTheme, currentChannel, handleEditChannel, setShowDeleteConfirm, }) => (
{!isAddingChannel ? (
) : (

Add New Channel

setNewChannel({ ...newChannel, name: e.target.value }) } className="rounded-[var(--lofi-button-radius)] bg-[var(--lofi-card-hover)] px-3 py-2 text-sm text-[var(--lofi-text-primary)] placeholder:text-[var(--lofi-text-secondary)]" /> setNewChannel({ ...newChannel, url: e.target.value }) } className="rounded-[var(--lofi-button-radius)] bg-[var(--lofi-card-hover)] px-3 py-2 text-sm text-[var(--lofi-text-primary)] placeholder:text-[var(--lofi-text-secondary)]" /> setNewChannel({ ...newChannel, description: e.target.value }) } className="rounded-[var(--lofi-button-radius)] bg-[var(--lofi-card-hover)] px-3 py-2 text-sm text-[var(--lofi-text-primary)] placeholder:text-[var(--lofi-text-secondary)]" /> setNewChannel({ ...newChannel, creator: e.target.value }) } className="rounded-[var(--lofi-button-radius)] bg-[var(--lofi-card-hover)] px-3 py-2 text-sm text-[var(--lofi-text-primary)] placeholder:text-[var(--lofi-text-secondary)]" />
)}
) export default ChannelManagement