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,
|
||||
RotateCcw,
|
||||
Image as ImageIcon,
|
||||
X,
|
||||
History,
|
||||
} from "lucide-react";
|
||||
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
|
||||
const triggerFileInput = () => {
|
||||
fileInputRef.current?.click();
|
||||
|
||||
Reference in New Issue
Block a user