export function usePermission() { const auth = useAuthStore() const has = (key: string) => { return auth.hasPermission(key) } return { has } }