useCheckPerm
Hook to check if the current user has a specific permission. Reads `permissions` from the headless `authStore` via `@tetherto/mdk-react-adapter`.
Hook to check if the current user has a specific permission. Reads `permissions` from the headless `authStore` via `@tetherto/mdk-react-adapter`.
import { useCheckPerm } from "@tetherto/mdk-react-adapter";Signature
({ perm, write, cap }: PermissionCheck) => boolean| Package | @tetherto/mdk-react-adapter |
| Requires provider | No |
useChartDataCheck
Hook to check if chart data is empty or unavailable Returns `true` if data is empty/unavailable (should show empty state) Returns `false` if data exists (sho…
useConsumptionChartData
TanStack Query hook returning raw consumption tail-log samples. Most dashboards should consume the higher-level `useSiteConsumptionChartData`, which wraps th…