import { Label } from '@/components/ui/label';
import { Input } from '@/components/ui/input';

interface DataRetentionSectionProps {
  dataRetention: number;
  onDataRetentionChange: (months: number) => void;
}

export function DataRetentionSection({
  dataRetention,
  onDataRetentionChange
}: DataRetentionSectionProps) {
  return (
    <div className="space-y-2">
      <Label htmlFor="data-retention">Historical Data Retention (months)</Label>
      <Input
        id="data-retention"
        type="number"
        min="1"
        max="120"
        value={dataRetention}
        onChange={(e) => onDataRetentionChange(parseInt(e.target.value) || 24)}
      />
      <p className="text-xs text-muted-foreground">
        Analytics data older than this will be archived or deleted
      </p>
    </div>
  );
}

