import React from 'react'; import { Save, AlertCircle, Loader2 } from 'lucide-react'; interface AutosaveIndicatorProps { saving: boolean; saved: boolean; error: string | null; } export function AutosaveIndicator({ saving, saved, error }: AutosaveIndicatorProps) { if (error) { return (
{error}
); } if (saving) { return (
Saving changes...
); } if (saved) { return (
Changes saved
); } return null; }