import { Loader2 } from 'lucide-react'
import { cn } from '@/lib'
// reject 폼 공유 컨트롤 (RejectCM / RejectRSP 공용)
export function SelectRadio({
text,
value,
name,
selectedValue,
onChange,
errorMessage,
disabled,
}: {
text: string
value: string
name: string
selectedValue: string
onChange: (value: string) => void
errorMessage: string
disabled?: boolean
}) {
const isChecked = selectedValue === value
return (
)
}
export function SubmitButton({
isValid,
isLoading,
isSubmitted,
onSubmit,
}: {
isValid: boolean
isLoading: boolean
isSubmitted: boolean
onSubmit: () => void
}) {
if (isSubmitted) return null
const style = isLoading
? 'bg-neutral-40 text-neutral-80 cursor-not-allowed'
: isValid
? 'bg-neutral-90 text-white cursor-pointer hover:bg-neutral-80'
: 'bg-neutral-20 text-neutral-60 cursor-not-allowed'
return (
)
}