"use client" import type React from "react" import { useRef } from "react" import { Button } from "@/components/ui/button" import { Calendar } from "lucide-react" interface IcsFilePickerProps { onFileSelect?: (file: File) => void className?: string children?: React.ReactNode variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" size?: "default" | "sm" | "lg" | "icon" } export function IcsFilePicker({ onFileSelect, className, children, variant = "default", size = "default", }: IcsFilePickerProps) { const fileInputRef = useRef(null) const handleButtonClick = () => { fileInputRef.current?.click() } const handleFileChange = (event: React.ChangeEvent) => { const file = event.target.files?.[0] if (file && onFileSelect) { onFileSelect(file) } } return ( <> ) }