12 lines
318 B
JavaScript
12 lines
318 B
JavaScript
import { useAuth } from "@/app/auth/AuthProvider.jsx";
|
|
import { PERMISSIONS } from "@/app/permissions";
|
|
|
|
export function useCoinAdjustmentAbilities() {
|
|
const { can } = useAuth();
|
|
|
|
return {
|
|
canCreate: can(PERMISSIONS.coinAdjustmentCreate),
|
|
canView: can(PERMISSIONS.coinAdjustmentView),
|
|
};
|
|
}
|