mirror of
https://github.com/penxio/penx.git
synced 2026-04-19 03:03:06 -04:00
12 lines
240 B
TypeScript
12 lines
240 B
TypeScript
import { trpc } from '@/lib/trpc'
|
|
|
|
export function useHolders(postId = '') {
|
|
const { data: holders = [], ...rest } = trpc.holder.listByPostId.useQuery(
|
|
postId,
|
|
{
|
|
enabled: !!postId,
|
|
},
|
|
)
|
|
return { holders, ...rest }
|
|
}
|