"use client" import { useState } from "react" import Link from "next/link" import { use } from "react" import { ArrowLeft, FileText, Download, Calendar, CheckCircle, PieChart, Users, LucideIcon, AlertCircle, BarChart3, Clock, FileBarChart, Share2, Bookmark } from "lucide-react" import { Button } from "@/components/ui/button" import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card" import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs" import { Badge } from "@/components/ui/badge" import { Separator } from "@/components/ui/separator" import { Accordion, AccordionContent, AccordionItem, AccordionTrigger, } from "@/components/ui/accordion" // Mock data for resolutions with detailed content const mockResolutions = [ { id: 12, title: "Education and Community Health Improvements", description: "A comprehensive set of recommendations for improving education access and community health services", summary: "This resolution addresses critical gaps in education and healthcare access by recommending the creation of free after-school programs for K-8 students and establishing community health clinics in underserved areas. These measures aim to improve educational outcomes, provide structured environments for children after school hours, and increase healthcare access for vulnerable populations.", date: "2024-02-15", contributions: [ { id: 1, title: "After-School Programs", description: "Create free after-school programs for K-8 students in public schools", category: "Education", votes: { yes: 312, no: 28 }, perspectives: 42, }, { id: 2, title: "Community Health Clinics", description: "Establish walk-in clinics in underserved areas with sliding scale fees", category: "Healthcare", votes: { yes: 278, no: 42 }, perspectives: 36, }, { id: 7, title: "Teacher Professional Development", description: "Increase funding for teacher training programs focused on inclusive education", category: "Education", votes: { yes: 245, no: 52 }, perspectives: 31, }, { id: 8, title: "Preventive Health Education", description: "Implement community-based health education programs focused on prevention", category: "Healthcare", votes: { yes: 231, no: 38 }, perspectives: 29, }, ], categories: ["Education", "Healthcare"], status: "active", timeline: [ { date: "2023-09-01", event: "Perspective Collection Started", description: "Community members began submitting perspectives on education and healthcare needs" }, { date: "2023-10-15", event: "Insights Generation", description: "AI-generated insights were derived from collected perspectives" }, { date: "2023-11-15", event: "First Contribution Validated", description: "After-School Programs contribution reached consensus" }, { date: "2023-12-03", event: "Second Contribution Validated", description: "Community Health Clinics contribution reached consensus" }, { date: "2024-01-20", event: "Resolution Draft", description: "Initial resolution draft based on validated contributions" }, { date: "2024-02-15", event: "Resolution Published", description: "Final resolution published after community review" } ], sections: [ { id: "1", title: "Background and Context", content: "Recent community feedback has highlighted significant gaps in both educational support services and healthcare access, particularly in underserved neighborhoods. Data indicates that approximately 45% of K-8 students lack supervision during after-school hours, contributing to concerning trends in academic performance and youth engagement. Additionally, 38% of residents in priority neighborhoods report delaying healthcare due to lack of affordable and accessible services." }, { id: "2", title: "Recommendations", content: "Based on community consensus, this resolution recommends: 1) Establishing free after-school programs in all public elementary and middle schools, with priority implementation in underserved areas; 2) Creating walk-in community health clinics with sliding scale fee structures in identified healthcare deserts; 3) Increasing funding for teacher professional development programs focused on inclusive education; and 4) Implementing community-based preventive health education programs.", subsections: [ { id: "2.1", title: "Education Initiatives", content: "After-school programs should operate from 3:00-6:00 PM on school days, offering tutoring, enrichment activities, and physical recreation. Teacher professional development programs should prioritize training in inclusive education practices and trauma-informed approaches." }, { id: "2.2", title: "Healthcare Initiatives", content: "Community health clinics should offer basic primary care, preventive services, and health education. Sliding scale fees should ensure that no resident is denied care due to inability to pay, with free services available to those meeting income requirements." } ] }, { id: "3", title: "Implementation Timeline", content: "Phase 1 (Immediate): Begin planning and resource allocation for both education and healthcare initiatives; Phase 2 (6-12 months): Launch pilot programs in highest-need areas; Phase 3 (12-24 months): Expand to remaining target areas; Phase 4 (Ongoing): Continuous evaluation and improvement." }, { id: "4", title: "Resource Requirements", content: "Education Initiatives: Estimated annual budget of $4.2M for staffing, materials, and facility usage; Healthcare Initiatives: Estimated annual budget of $5.8M for facilities, medical staff, and supplies. Recommended funding sources include reallocation from existing programs, grant opportunities, and public-private partnerships." }, { id: "5", title: "Expected Outcomes", content: "1) Improved academic performance and decreased truancy in K-8 students; 2) Reduced emergency room usage for non-emergency conditions; 3) Earlier detection and treatment of health conditions; 4) Increased community satisfaction with public services; 5) Long-term reduction in costs associated with preventable health conditions and educational remediation." } ], impactMetrics: { estimatedBeneficiaries: 25000, costEfficiency: "High", implementationComplexity: "Medium", timeToImpact: "6-12 months", sustainabilityScore: 8.2, }, stakeholders: ["School District", "Department of Health", "Community Organizations", "Parent Associations", "Healthcare Providers"] }, // Other resolutions would be defined here ] export default function ResolutionPage({ params }: { params: Promise<{ id: string }> }) { // Properly handle the params with React.use() const { id } = use(params) const resolutionId = parseInt(id) const [activeTab, setActiveTab] = useState("overview") // Find the resolution from mock data const resolution = mockResolutions.find(r => r.id === resolutionId) if (!resolution) { return (
The resolution you're looking for doesn't exist or has been removed.
{resolution.description}
{resolution.summary}
{item.event}
{item.description}
{new Date(item.date).toLocaleDateString()}
Measures long-term viability and environmental impact
{section.content}
{section.subsections && section.subsections.length > 0 && ({subsection.content}
{contribution.description}
Consensus
{label}
{sublabel}