How to check logged-in user permissions in LWC?

import { LightningElement } from 'lwc';
import hasViewAllData from '@salesforce/userPermission/ViewAllData';

export default class App extends LightingElement {
get isUserHasViewAll() {
return hasViewAllData;
}
}
Scroll to Top