<?php
/**
 * The notice a new install sees, anywhere in the admin.
 *
 * Deliberately plain WordPress markup rather than the plugin's own components:
 * this renders on every admin screen, and the plugin's stylesheet loads only on
 * its own. A notice that arrives unstyled on the posts list is worse than one
 * that looks like every other notice WordPress shows.
 *
 * @package TextTango
 *
 * @var array<string, mixed> $args View data supplied by FirstRun::render_notice().
 */

declare( strict_types=1 );

defined( 'ABSPATH' ) || exit;
?>
<div class="notice notice-info">
	<p>
		<strong><?php esc_html_e( 'TextTango is installed, but it cannot send anything yet.', 'texttango' ); ?></strong>
	</p>
	<p>
		<?php esc_html_e( 'It needs an API token from your TextTango account and a sender ID to send from. Setup walks through both, and nothing is sent to anybody until you switch an event on.', 'texttango' ); ?>
	</p>
	<p>
		<a class="button button-primary" href="<?php echo esc_url( (string) ( $args['setup_url'] ?? '' ) ); ?>">
			<?php esc_html_e( 'Finish setting up', 'texttango' ); ?>
		</a>
		<a class="button button-secondary" href="<?php echo esc_url( (string) ( $args['dismiss_url'] ?? '' ) ); ?>">
			<?php esc_html_e( 'Not now', 'texttango' ); ?>
		</a>
	</p>
</div>
