"use client" import { SelectBox } from '@common/business_components/ui'; import React, { useState } from 'react' import FileUploadForm from './fileUploadForm'; import { yearOptions } from '../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 quater = [{ text: '1분기', val: '1' }, { text: '2분기', val: '2' }, { text: '3분기', val: '3' }, { text: '4분기', val: '4' }] const [selectedYear, setSelectedYear] = useState(yearOptions[0]?.val || ''); const [selectedQuarter, setSelectedQuarter] = useState(quater[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