"use client";

import { Save } from "lucide-react";
import { Button } from "../ui/button";
import { Label } from "../ui/label";
import { Switch } from "../ui/switch";
import { useState } from "react";

interface FooterAgendaProps {
  onSave: () => void;
  onCancel: () => void;
}

export default function FooterAgenda({ onSave, onCancel }: FooterAgendaProps) {
  const [bloqueio, setBloqueio] = useState(false);
  
  return (
    <div className="sticky bottom-0 left-0 right-0 border-t border-border bg-background">
      <div className="mx-auto w-full max-w-7xl px-8 py-3 flex items-center justify-between">
        <div className="flex items-center gap-2">
          <Switch checked={bloqueio} onCheckedChange={setBloqueio} />
          <Label className="text-sm text-foreground">Bloqueio de Agenda</Label>
        </div>
        <div className="flex gap-2">
          <Button variant="ghost" onClick={onCancel}>Cancelar</Button>
          <Button onClick={onSave}>Salvar</Button>
        </div>
      </div>
    </div>
  );
}
