refactor(data): add mock API adapters, id utility, and toast feedback
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import { mockReviews } from "@/lib/mock"
|
||||
|
||||
export function listReviews() {
|
||||
return mockReviews
|
||||
}
|
||||
|
||||
export function listReviewsByOrder(orderId: string) {
|
||||
return mockReviews.filter((review) => review.orderId === orderId)
|
||||
}
|
||||
|
||||
export function listReviewsByTargetUser(userId: string) {
|
||||
return mockReviews.filter((review) => review.toUserId === userId)
|
||||
}
|
||||
Reference in New Issue
Block a user