<?php

namespace AgeGate\Dev\Admin\Settings;

trait Dev
{
    protected function getDevFields()
    {
        return [
            [
                // 'title' => 'Developer options',
                'subtitle' => '',
                'fields' => [
                    'dev_versions' => [
                        'type' => 'checkbox',
                        'label' => __('Development versions', 'age-gate'),
                        'default' => true,
                        'subtext' => __('Allow updates to development versions (not recommended in production)', 'age-gate'),
                    ],
                    'dev_warning' => [
                        'type' => 'checkbox',
                        'label' => __('Development warning', 'age-gate'),
                        'default' => true,
                        'subtext' => __('Show warnings if using development version', 'age-gate'),
                    ],
                    'dev_endpoint' => [
                        'type' => 'checkbox',
                        'label' => __('Developer endpoint', 'age-gate'),
                        'default' => false,
                        'subtext' => __('Enable a developer API endpoint containing Age Gate information', 'age-gate'),
                    ],
                ]
            ],
        ];
    }
}