Download wp-calypso/client/dashboard/sites/settings-database/summary.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 653 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/dashboard/sites/settings-database/summary.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/dashboard/sites/settings-database/summary.tsx
-
curl -L -o summary.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/dashboard/sites/settings-database/summary.tsx
653 Bytes
| import { Icon } from '@wordpress/components'; | |
| import { __ } from '@wordpress/i18n'; | |
| import { blockTable } from '@wordpress/icons'; | |
| import RouterLinkSummaryButton from '../../components/router-link-summary-button'; | |
| import type { Site } from '../../data/types'; | |
| import type { Density } from '@automattic/components/src/summary-button/types'; | |
| export default function DatabaseSettingsSummary( { | |
| site, | |
| density, | |
| }: { | |
| site: Site; | |
| density?: Density; | |
| } ) { | |
| return ( | |
| <RouterLinkSummaryButton | |
| to={ `/sites/${ site.slug }/settings/database` } | |
| title={ __( 'Database' ) } | |
| density={ density } | |
| decoration={ <Icon icon={ blockTable } /> } | |
| /> | |
| ); | |
| } | |