// DEPLOY_CONFIG: {"triggers": [{"name": "reaction_notification_on_post_reaction", "on": "collection.add", "collection": "reactions", "actions": [{"type": "event", "event_type": "create_reaction_notification", "payload": {"reaction_id": "{{id}}", "post_id": "{{post_id}}", "reactor_id": "{{user_id}}", "reaction_type": "{{type}}"}}]}]} import { useState } from 'react'; import { useAuth, usePresence } from '@deplixo/sdk'; import { Feed } from './components/Feed.jsx'; import { ComposeModal } from './components/ComposeModal.jsx'; function App() { const { user, loading, login, logout } = useAuth(); const [showCompose, setShowCompose] = useState(false); const [activeTag, setActiveTag] = useState(null); const { users: onlineUsers } = usePresence({ status: 'online' }); usePresence( user ? { id: user.id, name: user.name, email: user.email, avatar: user.avatar, status: 'online', } : null ); if (loading) { return
Micro thoughts, beautifully shared
Sign in with Google to post, react, and connect with your audience.
Micro thoughts, beautifully shared