REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 642 B
Close
//proc/thread-self/root/home/byroehnu/.trash/node_modules11/adminjs/src/frontend/hooks/use-resource/use-resource.ts
Text
Base64
import { useSelector } from 'react-redux' import { ResourceJSON } from '../../interfaces/resource-json.interface.js' import { ReduxState } from '../../store/store.js' /** * @load ./use-resource.doc.md * @subcategory Hooks * @class * @hideconstructor * @bundle * @param {string} resourceId Id of a resource you want to get */ const useResource = (resourceId: string): ResourceJSON | undefined => { const resources = useSelector((state: ReduxState) => state.resources) const foundResource = resources.find((resource) => resource.id === resourceId) return foundResource } export { useResource as default, useResource, }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 3
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
index.ts
34 B
lrw-r--r--
2026-02-28 00:32:28
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
use-resource.doc.md
356 B
lrw-r--r--
2026-02-28 00:31:58
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
use-resource.ts
642 B
lrw-r--r--
2026-02-28 00:32:46
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).