import { useStore } from '@nanostores/react'
import { $interactions, $interactionsData, $hasInteractionChanges, $saveInteractions, $changedInteractionFields } from '../stores/interactions'
import { addToast } from '../stores/app'
import { SaveBar, EngagementPageSkeleton, PageHeader } from '../components/shared'
import { Toggle, Input } from '../components/ui'
export default function EngagementPage() {
const config = useStore($interactions)
const { data } = useStore($interactionsData)
const hasChanges = useStore($hasInteractionChanges)
const changedFields = useStore($changedInteractionFields)
const saveInteractions = useStore($saveInteractions)
const handleSave = async () => {
try {
await saveInteractions.mutate(config)
addToast('Settings saved', 'success')
} catch {
addToast('Failed to save settings', 'error')
}
}
if (!data) return
Space-separated list of emoji reactions