refactor(data): add mock API adapters, id utility, and toast feedback
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import { mockDisputes } from "@/lib/mock"
|
||||
|
||||
export function listDisputes() {
|
||||
return mockDisputes
|
||||
}
|
||||
|
||||
export function getDisputeByOrderId(orderId: string) {
|
||||
return mockDisputes.find((dispute) => dispute.orderId === orderId)
|
||||
}
|
||||
Reference in New Issue
Block a user