fix: resolve components in legacy mode

This commit is contained in:
2026-02-03 22:04:39 +05:00
parent c0abc7f974
commit 2b701dec6c
6 changed files with 19 additions and 8 deletions
+5 -3
View File
@@ -7,9 +7,11 @@
import { uiStore } from "../stores/uiStore";
import "cropperjs/dist/cropper.css";
export let imageSrc: string;
export let onCropComplete: (croppedImage: string) => void;
export let onCancel: () => void;
let { imageSrc, onCropComplete, onCancel }: {
imageSrc: string;
onCropComplete: (croppedImage: string) => void;
onCancel: () => void;
} = $props();
let imageElement: HTMLImageElement;
let cropper: Cropper | null = null;