Download wp-calypso/client/dashboard/app/queries/site-backups.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 409 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/dashboard/app/queries/site-backups.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/dashboard/app/queries/site-backups.ts
-
curl -L -o site-backups.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/dashboard/app/queries/site-backups.ts
409 Bytes
| import { fetchSiteRewindableActivityLog } from '../../data/site-activity-log'; | |
| import type { ActivityLog } from '../../data/site-activity-log'; | |
| export const siteLastBackupQuery = ( siteId: number ) => ( { | |
| queryKey: [ 'site', siteId, 'backups', 'last' ], | |
| queryFn: () => fetchSiteRewindableActivityLog( siteId, { number: 1 } ), | |
| select: ( data: ActivityLog ) => data.current?.orderedItems[ 0 ] ?? null, | |
| } ); | |