import { useNavigate } from 'react-router-dom'; import { Card, CardBody, Button, Icon } from '@wordpress/components'; import { __ } from '@wordpress/i18n'; import { plugins, brush } from '@wordpress/icons'; import Layout from '../layout/Layout'; /** * Dashboard component that serves as the main landing page for WP Rollback. * Provides options to rollback plugins or themes. * * @return {JSX.Element} The rendered Dashboard component */ export const Dashboard = () => { const navigate = useNavigate(); return (

{ __( 'Rollback a Plugin or Theme', 'wp-rollback' ) }

{ __( 'With WP Rollback you can go back to a previous WordPress.org plugin or theme version with ease. Which action would you like to perform today?', 'wp-rollback' ) }

{ __( 'Plugin Version Rollback', 'wp-rollback' ) }

{ __( "Revert any WordPress.org plugin to a previous version with just a few clicks. Choose the plugin and version you'd like to restore.", 'wp-rollback' ) }

{ __( 'Theme Version Rollback', 'wp-rollback' ) }

{ __( "Revert any WordPress.org plugin to a previous version with just a few clicks. Choose the plugin and version you'd like to restore.", 'wp-rollback' ) }

{ __( 'The Safest Way to Rollback Premium Plugins & Themes', 'wp-rollback' ) }

{ __( 'Get complete control over every plugin on your site with automated backups, rollback notes for your team, and support for premium plugins from any marketplace.', 'wp-rollback' ) }

); };