"use client" import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card" import { Button } from "@/components/ui/button" import { Badge } from "@/components/ui/badge" import { FileIcon as FileTemplate, Plus, Copy, Edit, Trash2 } from "lucide-react" interface ScheduleTemplatesProps { teamId: string teamName: string } // Sample template data const getTemplates = (teamId: string) => [ { id: "1", name: "Standard Week", description: "Regular 5-day work week with weekend coverage", shifts: ["08:00-16:00", "16:00-00:00", "00:00-08:00"], employees: 8, coverage: "24/7", }, { id: "2", name: "Holiday Schedule", description: "Reduced staffing for holidays and special events", shifts: ["08:00-20:00", "20:00-08:00"], employees: 4, coverage: "24/7", }, { id: "3", name: "Maintenance Week", description: "Extended maintenance periods with adjusted shifts", shifts: ["06:00-14:00", "14:00-22:00", "22:00-06:00"], employees: 6, coverage: "24/7", }, { id: "4", name: "Emergency Response", description: "Emergency staffing template for critical situations", shifts: ["12-hour rotating"], employees: 12, coverage: "24/7", }, ] export function ScheduleTemplates({ teamId, teamName }: ScheduleTemplatesProps) { const templates = getTemplates(teamId) return (
{teamName} - Schedule Templates Pre-configured schedule templates for quick deployment
{templates.map((template) => (
{template.name} {template.description}
{template.coverage}

Shift Patterns:

{template.shifts.map((shift, index) => ( {shift} ))}
{template.employees} employees
))}
{templates.length === 0 && (

No templates found

Create your first schedule template to get started

)}
) }