webapp/src/stores/zine/common.ts
Tony 0b70289195
Prepare inbox (#65)
Chat client - MVP
2022-12-17 06:27:00 +03:00

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 })
}