import type { LangMap } from './types'; /** The tools of a group, in the order of the menu. */ export const TOOLS = ['decisions', 'docs', 'mandats', 'protocoles'] as const; export type Tool = (typeof TOOLS)[number]; /** Announced in a tool, not open yet (`seeds/upcoming/.json` on the server). */ export interface UpcomingItem { key: string; title: LangMap; } export interface GroupView { group: { slug: string; name: string; parent: string | null; policy: string; open: boolean }; tools: { key: string; active: boolean }[]; docs: { id: string; slug: string; title: LangMap; summary: LangMap; inForce: number; open: number }[]; upcoming: { docs: UpcomingItem[]; mandats: UpcomingItem[]; protocoles: UpcomingItem[] }; } /** « Décisions »: one line per document in progress. */ export interface DecisionsView { canVote: boolean; docs: { id: string; slug: string; title: LangMap; toVote: number; withoutMyVote: number | null }[]; }