<?php
declare(strict_types=1);

/** @var array{ok:?string,err:?string} $flash */
/** @var string $clientId */
/** @var string $clientSecret */
/** @var string $oauthJson */
/** @var null|array $diag */
/** @var bool $isConnected */
/** @var bool $reconnectRequired */
/** @var null|string $tokenError */
/** @var list<array{site_url:string,site_type:string,permission_level:string,fetched_at:string,is_enabled:int,enabled_at:?string,last_sync_date:?string,last_sync_at:?string,last_sync_error:?string}> $properties */
/** @var string $syncMode */
/** @var string $syncRowLimit */
/** @var string $syncSleepMs */
/** @var string $breakdownsPolicy */
/** @var array $quickWinCfg */
/** @var null|string $lastSyncSummary */

$pageTitle = __('settings.google.page_title');
$pageHeading = __('settings.google.heading');
$activeNav = 'settings';
$hideHero = true;

ob_start();
?>
<div class="dashboard-card p-4" style="overflow: visible; height: auto;">
    <?php require __DIR__ . '/partials/settings_google_content.php'; ?>
</div>
<?php
$content = (string) ob_get_clean();
require __DIR__ . '/layout_admin.php';

