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