'use client' import { Input } from '@/components/ui/input' import { ToggleGroup, ToggleGroupItem } from '@/components/ui/toggle-group' interface Props { value: string onChange: (value: string) => void } export function FactorInput({ value, onChange }: Props) { return (
{ onChange(e.target.value) }} className="w-full" />
{ if (!v) return if (v === '1') onChange('20000') if (v === '2') onChange('50000') if (v === '3') onChange('100000') }} type="single" > 20000 50000 100000
) }