File size: 975 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import { __experimentalText as Text, Button } from '@wordpress/components';
import { plus } from '@wordpress/icons';
import { useTranslate } from 'i18n-calypso';

interface Props {
	onCreateNewSchedule: () => void;
}
export const ScheduleListEmpty = ( props: Props ) => {
	const translate = useTranslate();

	const { onCreateNewSchedule } = props;

	return (
		<div className="plugins-update-manager-multisite-table-container">
			<div className="empty-state">
				<Text as="p">
					{ translate(
						"Take control of your site's maintenance by choosing when your plugins update—whatever day and time is most convenient. Enjoy hassle-free automatic updates, and our built-in rollback feature reverts any flawed updates for added peace of mind."
					) }
				</Text>
				<Button
					__next40pxDefaultSize
					icon={ plus }
					variant="primary"
					onClick={ onCreateNewSchedule }
				>
					{ translate( 'Add new schedule' ) }
				</Button>
			</div>
		</div>
	);
};