<?php

declare(strict_types=1);

namespace OCA\Astrolabe\Settings;

use OCP\IL10N;
use OCP\IURLGenerator;
use OCP\Settings\IIconSection;

/**
 * Personal settings section for Astrolabe.
 *
 * Creates a dedicated section in personal settings for semantic search configuration.
 */
class PersonalSection implements IIconSection {
	private $l;
	private $urlGenerator;

	public function __construct(IL10N $l, IURLGenerator $urlGenerator) {
		$this->l = $l;
		$this->urlGenerator = $urlGenerator;
	}

	/**
	 * @return string The section ID
	 */
	public function getID(): string {
		return 'astrolabe';
	}

	/**
	 * @return string The translated section name
	 */
	public function getName(): string {
		return $this->l->t('Astrolabe');
	}

	/**
	 * @return int Priority (lower = higher up in list, 0-99)
	 */
	public function getPriority(): int {
		return 80;
	}

	/**
	 * @return string Section icon (SVG or image URL)
	 */
	public function getIcon(): string {
		return $this->urlGenerator->imagePath('astrolabe', 'app-dark.svg');
	}
}
