<?php

namespace Planaday\Html\NodeTags\Course\Details\DaypartList;

use Planaday\Config\Course\Detail\DetailSettings;
use Planaday\Config\Course\General\GeneralSettings;
use Planaday\Entities\DayPart\DayPartController;
use Planaday\Html\NodeTags\Tag;
use Planaday\Html\NodeTags\TemplateOnlyTag;
use Planaday\Utility\DependencyInjection\Attributes\Transient;

#[Transient]
class DaypartList implements Tag {
	use TemplateOnlyTag;

	public function __construct(
		protected GeneralSettings $generalSettings,
	) {
		$this->config = [
			"dayPartText" => $this->generalSettings->getDayPartText(...),
		];
	}

	public function getTagDir(): string {
		return __DIR__;
	}
}