feat: 实现图片压缩功能

This commit is contained in:
2026-01-25 22:37:40 +08:00
parent 081e2058bf
commit 54009163b1
18 changed files with 1603 additions and 167 deletions

View File

@@ -6,7 +6,7 @@ import { Slider } from "@/components/ui/slider";
import { Button } from "@/components/ui/button";
import { Badge } from "@/components/ui/badge";
import { cn } from "@/lib/utils";
import { useTranslation } from "@/lib/i18n";
import { useSafeTranslation } from "@/lib/i18n";
export interface ConfigOption {
id: string;
@@ -39,7 +39,7 @@ export function ConfigPanel({
onReset,
className,
}: ConfigPanelProps) {
const { t } = useTranslation();
const { t } = useSafeTranslation();
return (
<Card className={className}>