<?php

declare(strict_types=1);

namespace App\Settings;

use Spatie\LaravelSettings\Settings;

class GeneralSettings extends Settings
{
    public string $site_name;

    public string $site_url;

    public ?string $site_description;

    public string $active_theme;

    public string $attachments_url_prefix;

    /** @var 'html'|'markdown' Default format for newly created articles */
    public string $default_content_format;

    /** @var 'html'|'markdown' Format written during sablog import when not converting */
    public string $import_content_format;

    /** When true, import converts HTML bodies to Markdown */
    public bool $import_convert_html_to_markdown;

    public static function group(): string
    {
        return 'general';
    }
}
