Download wp-calypso/apps/odyssey-stats/src/lib/selectors/can-current-user.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 220 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/apps/odyssey-stats/src/lib/selectors/can-current-user.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/apps/odyssey-stats/src/lib/selectors/can-current-user.ts
-
curl -L -o can-current-user.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/apps/odyssey-stats/src/lib/selectors/can-current-user.ts
220 Bytes
| import { canCurrentUser } from 'calypso/state/selectors/can-current-user'; | |
| import getState from './get-state'; | |
| export default ( siteId: number, capability: string ) => | |
| canCurrentUser( getState(), siteId, capability ); | |