feat(editor): ✨ Team workspaces
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
import { Plan, User } from 'db'
|
||||
import { isNotDefined, sendRequest } from 'utils'
|
||||
import { User } from 'db'
|
||||
import { sendRequest } from 'utils'
|
||||
|
||||
export const updateUser = async (id: string, user: User) =>
|
||||
sendRequest({
|
||||
@ -7,6 +7,3 @@ export const updateUser = async (id: string, user: User) =>
|
||||
method: 'PUT',
|
||||
body: user,
|
||||
})
|
||||
|
||||
export const isFreePlan = (user?: User) =>
|
||||
isNotDefined(user) || user?.plan === Plan.FREE
|
||||
|
Reference in New Issue
Block a user