webapp/src/stores/zine/common.ts

11 lines
415 B
TypeScript
Raw Normal View History

2022-09-09 11:53:35 +00:00
import type { FollowingEntity } from '../../graphql/types.gen'
import { apiClient } from '../../utils/apiClient'
export const follow = async ({ what, slug }: { what: FollowingEntity; slug: string }) => {
2022-12-17 03:27:00 +00:00
console.log('!!! follow:')
2022-09-09 11:53:35 +00:00
await apiClient.follow({ what, slug })
}
export const unfollow = async ({ what, slug }: { what: FollowingEntity; slug: string }) => {
await apiClient.unfollow({ what, slug })
}