<?php

namespace App\Support;

class SeoMeta
{
    /**
     * @return array{title: string, description: string, image: string|null, type: string}
     */
    public static function make(string $title, ?string $description = null, ?string $image = null, string $type = 'website'): array
    {
        return [
            'title' => $title,
            'description' => $description ?: 'Shop latest products, offers, and updates at 8Stores.',
            'image' => $image,
            'type' => $type,
        ];
    }
}
