package capture

import "gitea.henriburau.de/haw-lan/cod4watcher/models"
import "gitea.henriburau.de/haw-lan/cod4watcher/views/layouts"
import "gitea.henriburau.de/haw-lan/cod4watcher/views/components"

templ Capture(capture *models.Capture) {
	@layouts.Base() {
		<div class="flex flex-col">
			<div class="block font-bold text-lg">
				{ capture.Name }
			</div>
			<div class="block">
				{ capture.Host }:{ capture.Port }
			</div>
			@components.CaptureTable(*capture.MapScores.BuildTable())
		</div>
	}
}
