import { useTranslate } from 'i18n-calypso'; import { SiteSlug } from 'calypso/types'; import { ScheduleListTableRow } from './schedule-list-table-row'; import type { MultisiteSchedulesUpdates } from 'calypso/data/plugins/use-update-schedules-query'; type Props = { schedules: MultisiteSchedulesUpdates[]; onEditClick: ( id: string ) => void; onRemoveClick: ( id: string ) => void; onLogsClick: ( id: string, siteSlug: SiteSlug ) => void; search?: string; }; export const ScheduleListTable = ( props: Props ) => { const { schedules, onEditClick, onLogsClick, onRemoveClick } = props; const translate = useTranslate(); return (
{ schedules.map( ( schedule ) => ( ) ) } { schedules.length === 0 && ( ) }
{ translate( 'Name' ) } { translate( 'Sites' ) } { translate( 'Last update' ) } { translate( 'Next update' ) } { translate( 'Frequency' ) } { translate( 'Plugins' ) } { translate( 'Active' ) }

{ translate( "Oops! We couldn't find any schedules based on your search criteria. You might want to check your search terms and try again." ) }

); };