refactor(data): add mock API adapters, id utility, and toast feedback
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import { currentUser, mockUsers } from "@/lib/mock"
|
||||
|
||||
export function listUsers() {
|
||||
return mockUsers
|
||||
}
|
||||
|
||||
export function getUserById(userId: string) {
|
||||
return mockUsers.find((user) => user.id === userId)
|
||||
}
|
||||
|
||||
export function getCurrentUserForLogin() {
|
||||
return currentUser
|
||||
}
|
||||
Reference in New Issue
Block a user