Showcase of new collaboration features
import { useActivityLog } from './hooks/useActivityLog'
const { logActivity } = useActivityLog(teamId)
// Log an action
await logActivity({
action: ActivityAction.FILE_UPLOADED,
entity_type: EntityType.FILE,
entity_name: 'Report.pdf'
})// Notifications are automatically shown via the // NotificationCenter component in the layout
import { MentionInput } from './components/mentions/MentionInput'
<MentionInput
value={text}
onChange={(val, mentions) => {
setText(val)
setMentions(mentions)
}}
teamId={teamId}
/>