mirror of
https://github.com/DayuanJiang/next-ai-draw-io.git
synced 2026-01-02 22:32:27 +08:00
minor: remove unused function
This commit is contained in:
@@ -9,7 +9,6 @@ import {
|
|||||||
Send,
|
Send,
|
||||||
RotateCcw,
|
RotateCcw,
|
||||||
Image as ImageIcon,
|
Image as ImageIcon,
|
||||||
X,
|
|
||||||
History,
|
History,
|
||||||
} from "lucide-react";
|
} from "lucide-react";
|
||||||
import { ButtonWithTooltip } from "@/components/button-with-tooltip";
|
import { ButtonWithTooltip } from "@/components/button-with-tooltip";
|
||||||
@@ -84,14 +83,6 @@ export function ChatInput({
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// Clear all files
|
|
||||||
const clearFiles = () => {
|
|
||||||
if (fileInputRef.current) {
|
|
||||||
fileInputRef.current.value = "";
|
|
||||||
}
|
|
||||||
onFileChange([]);
|
|
||||||
};
|
|
||||||
|
|
||||||
// Trigger file input click
|
// Trigger file input click
|
||||||
const triggerFileInput = () => {
|
const triggerFileInput = () => {
|
||||||
fileInputRef.current?.click();
|
fileInputRef.current?.click();
|
||||||
|
|||||||
Reference in New Issue
Block a user