chore: no more processing image stuff
This commit is contained in:
@@ -3,17 +3,11 @@ import { getCurrentWindow } from "@tauri-apps/api/window";
|
||||
import { type Component, createEffect } from "solid-js";
|
||||
import { sendImage } from "../network";
|
||||
|
||||
type ImageViewerProps = {
|
||||
onSendImage: (
|
||||
processingImage: Awaited<ReturnType<typeof sendImage>>,
|
||||
) => void;
|
||||
};
|
||||
|
||||
// This probably shouldn't live here.
|
||||
// The request should be made from rust but hey.
|
||||
// We'll do that later
|
||||
|
||||
export const ImageViewer: Component<ImageViewerProps> = (props) => {
|
||||
export const ImageViewer: Component = () => {
|
||||
// const [latestImage, setLatestImage] = createSignal<string | null>(null);
|
||||
|
||||
let sentImage = "";
|
||||
@@ -38,8 +32,6 @@ export const ImageViewer: Component<ImageViewerProps> = (props) => {
|
||||
|
||||
const result = await sendImage("test-image.png", base64Data);
|
||||
|
||||
props.onSendImage(result);
|
||||
|
||||
console.log("DBG: ", result);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user