import { useI18n } from '@wordpress/react-i18n'; import { SortButton } from '../components/sort-button/sort-button'; import { SortDirection } from '../components/sort-button/use-sort'; import { DeploymentsRunItem } from './deployments-run-item'; import { DeploymentRun } from './use-code-deployment-run-query'; interface DeploymentsRunsTableProps { deploymentsRuns: DeploymentRun[]; sortKey: string; sortDirection: SortDirection; onSortChange( key: string ): void; } export const DeploymentsRunsTable = ( { deploymentsRuns, sortKey, sortDirection, onSortChange, }: DeploymentsRunsTableProps ) => { const { __ } = useI18n(); if ( deploymentsRuns.length === 0 ) { return ( { __( 'This connection has no deployment runs yet.' ) } ); } return (
| { __( 'Author' ) } | { __( 'Commit' ) } |
|
|
|
|---|