import { Card, CardContent, CardDescription, CardHeader, CardTitle, Input, TextArea, Button, Chip, Separator, TextField, Label } from '@heroui/react'; import { UserRound, Save, Send } from 'lucide-react'; import { useApp } from '../context/AppContext'; import { SectionCard } from '../components/shared/SectionCard'; import { AppAvatar } from '../components/shared/AppAvatar'; import { DiscordPreview, DiscordButton } from '../components/shared/DiscordPreview'; import { ChannelSelect } from '../components/shared/ChannelSelect'; import { AppSwitch } from '../components/shared/AppSwitch'; import { useGuildResources } from '../hooks/useGuildResources'; export function SupportLogin() { const { supportLogin, setSupportLogin, saveSupportLogin, currentGuildId } = useApp(); const { channels } = useGuildResources(currentGuildId); return (
Panel-Konfiguration Texte und Zielkanal mit normalen HeroUI-Feldern pflegen.
setSupportLogin((s) => s ? { ...s, config: { ...s.config, autoRefresh: v } } : s)} label="Auto-Refresh aktiv" /> setSupportLogin((s) => s ? { ...s, config: { ...s.config, panelChannelId: id } } : s)} placeholder="Channel für das Panel wählen" /> setSupportLogin((s) => s ? { ...s, config: { ...s.config, title: e.target.value } } : s)} />