"use client" import { SelectBox } from '@common/business_components/ui'; import React, { useState } from 'react' import FileUploadForm from './fileUploadForm'; import { yearOptions, getQuarterOptions } from '@/components/lib/utils'; const operFileUploadForm = ({ title, onSubmit }: { title: string, onSubmit: (files: string, year: string, quarter: string, code: string, id: string) => void }) => { const [atflCd, setAtflCd] = useState(null); const [atflId, setAtflId] = useState(null); const quaterOptions = getQuarterOptions(); const [selectedYear, setSelectedYear] = useState(yearOptions[0]?.val || ''); const [selectedQuarter, setSelectedQuarter] = useState(quaterOptions[0]?.val || ''); return (

{title}

setSelectedYear(String(value))} /> setSelectedQuarter(String(value))} /> { onSubmit(files, (selectedYear ?? year) || '', (selectedQuarter ?? quarter) || '', code, id); }} showButton={true} showPreview={true} accept={""} />
) } export default operFileUploadForm