This hook is SWR powered. Use this hook to fetch a collection's activity, using the Collection Activity endpoint. It takes the collection ID, as the first parameter, an optional query object which maps to the same parameters that the API endpoint uses, as the second parameter, and an optional SWR Infinite configuration object, as the third parameter.

import { useCollectionActivity } from '@reservoir0x/reservoir-kit-ui'

const { data: activity } = useCollectionActivity(