'use client' import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card' import { Input } from '@/components/ui/input' import { Label } from '@/components/ui/label' import { Switch } from '@/components/ui/switch' import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@/components/ui/select' type RoundConfigFormProps = { roundType: string config: Record onChange: (config: Record) => void } export function RoundConfigForm({ roundType, config, onChange }: RoundConfigFormProps) { const updateConfig = (key: string, value: unknown) => { onChange({ ...config, [key]: value }) } if (roundType === 'INTAKE') { return ( Intake Configuration
updateConfig('allowDrafts', checked)} />
updateConfig('draftExpiryDays', parseInt(e.target.value, 10))} />
updateConfig('maxFileSizeMB', parseInt(e.target.value, 10))} />
updateConfig('publicFormEnabled', checked)} />
) } if (roundType === 'FILTERING') { return ( Filtering Configuration
updateConfig('aiScreeningEnabled', checked)} />
updateConfig('duplicateDetectionEnabled', checked)} />
updateConfig('manualReviewEnabled', checked)} />
updateConfig('batchSize', parseInt(e.target.value, 10))} />
) } if (roundType === 'EVALUATION') { return ( Evaluation Configuration
updateConfig('requiredReviewsPerProject', parseInt(e.target.value, 10))} />
updateConfig('requireFeedback', checked)} />
updateConfig('coiRequired', checked)} />
) } if (roundType === 'LIVE_FINAL') { return ( Live Final Configuration
updateConfig('juryVotingEnabled', checked)} />
updateConfig('audienceVotingEnabled', checked)} />
{(config.audienceVotingEnabled as boolean) && (
updateConfig('audienceVoteWeight', parseFloat(e.target.value))} />
)}
updateConfig('presentationDurationMinutes', parseInt(e.target.value, 10))} />
) } // Default view for other types return ( {roundType} Configuration

Configuration UI for {roundType} rounds is not yet implemented.

          {JSON.stringify(config, null, 2)}
        
) }