Refactor SyncSettings component

Refactor SyncSettings component into smaller components and extract logic into a separate hook.
This commit is contained in:
gpt-engineer-app[bot]
2025-03-16 10:40:07 +00:00
parent 14c3fac824
commit 1d911153a7
4 changed files with 282 additions and 208 deletions

View File

@@ -0,0 +1,25 @@
import React from 'react';
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
import { AlertCircle } from "lucide-react";
interface SyncExplanationProps {
enabled: boolean;
}
const SyncExplanation: React.FC<SyncExplanationProps> = ({ enabled }) => {
if (!enabled) return null;
return (
<Alert className="bg-amber-50 text-amber-800 border-amber-200">
<AlertCircle className="h-4 w-4" />
<AlertTitle> </AlertTitle>
<AlertDescription className="text-sm">
. .
.
</AlertDescription>
</Alert>
);
};
export default SyncExplanation;