11 lines
415 B
TypeScript
11 lines
415 B
TypeScript
import type { FollowingEntity } from '../../graphql/types.gen'
|
|
import { apiClient } from '../../utils/apiClient'
|
|
|
|
export const follow = async ({ what, slug }: { what: FollowingEntity; slug: string }) => {
|
|
console.log('!!! follow:')
|
|
await apiClient.follow({ what, slug })
|
|
}
|
|
export const unfollow = async ({ what, slug }: { what: FollowingEntity; slug: string }) => {
|
|
await apiClient.unfollow({ what, slug })
|
|
}
|