--- import type { Activity } from "../lib/api"; import { activityLevel, ago, coordinatePrecisionLabel, kg, spotPath } from "../lib/api"; import FishingIcon from "./FishingIcon.astro"; import DataPassport from "./DataPassport.astro"; import FishSilhouette from "./FishSilhouette.astro"; import TackleGlyph from "./TackleGlyph.astro"; const { item, periodLabel = null } = Astro.props as { item: Activity; periodLabel?: string | null }; const level = activityLevel(item.activity_score); const limited = item.catches < 3; const precision = coordinatePrecisionLabel(item.coordinate_precision); --- {String(item.activity_score).padStart(2,"0")}
{item.waterbody}{level.short}{limited && Данных мало}

{item.fish}

{item.x}:{item.y} · {precision} {ago(item.last_confirmed_at)}

{item.explanation}

{limited ? "Нужно ещё подтверждений" : item.best_bait ? "Работает сейчас" : "Наживка не указана"}{item.best_bait ?? "не указана"}
Открыть точку
{kg(item.average_weight_g)}средний вес
{kg(item.max_weight_g)}макс. вес