Reverted all changes back to version d33dceb08c

This commit is contained in:
[dyad]
2026-01-18 17:26:28 +01:00
parent de6afb1d7e
commit 212d13d5db
19 changed files with 93 additions and 656 deletions

View File

@@ -4,14 +4,12 @@ import { Button } from "@/components/ui/button";
import { Check, RotateCcw } from "lucide-react";
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "@/components/ui/tooltip";
import { toast } from "sonner";
import { useTranslations } from "next-intl";
interface ActionButtonsProps {
onReset: () => void;
}
export function ActionButtons({ onReset }: ActionButtonsProps) {
const t = useTranslations("ActionButtons");
const handleApply = () => {
toast.info("Settings updated and will be used for all downloads.");
};
@@ -22,18 +20,18 @@ export function ActionButtons({ onReset }: ActionButtonsProps) {
<Tooltip>
<TooltipTrigger asChild>
<Button onClick={onReset} className="w-full" variant="outline">
<RotateCcw className="mr-2 h-4 w-4" /> {t('reset')}
<RotateCcw className="mr-2 h-4 w-4" /> Reset
</Button>
</TooltipTrigger>
<TooltipContent><p>{t('resetTooltip')}</p></TooltipContent>
<TooltipContent><p>Reset all settings to their default values.</p></TooltipContent>
</Tooltip>
<Tooltip>
<TooltipTrigger asChild>
<Button onClick={handleApply} className="w-full">
<Check className="mr-2 h-4 w-4" /> {t('apply')}
<Check className="mr-2 h-4 w-4" /> Apply
</Button>
</TooltipTrigger>
<TooltipContent><p>{t('applyTooltip')}</p></TooltipContent>
<TooltipContent><p>Confirm and apply all the settings above. This does not download the images.</p></TooltipContent>
</Tooltip>
</div>
</TooltipProvider>