'use client' import { motion } from 'motion/react' import { UseFormReturn } from 'react-hook-form' import { WizardStepContent } from '@/components/forms/form-wizard' import { Input } from '@/components/ui/input' import { Label } from '@/components/ui/label' import { Textarea } from '@/components/ui/textarea' import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue, } from '@/components/ui/select' import type { ApplicationFormData } from '@/server/routers/application' import { OceanIssue } from '@prisma/client' interface OceanIssueOption { value: OceanIssue label: string } const oceanIssueOptions: OceanIssueOption[] = [ { value: 'POLLUTION_REDUCTION', label: 'Reduction of pollution (plastics, chemicals, noise, light,...)' }, { value: 'CLIMATE_MITIGATION', label: 'Mitigation of climate change and sea-level rise' }, { value: 'TECHNOLOGY_INNOVATION', label: 'Technology & innovations' }, { value: 'SUSTAINABLE_SHIPPING', label: 'Sustainable shipping & yachting' }, { value: 'BLUE_CARBON', label: 'Blue carbon' }, { value: 'HABITAT_RESTORATION', label: 'Restoration of marine habitats & ecosystems' }, { value: 'COMMUNITY_CAPACITY', label: 'Capacity building for coastal communities' }, { value: 'SUSTAINABLE_FISHING', label: 'Sustainable fishing and aquaculture & blue food' }, { value: 'CONSUMER_AWARENESS', label: 'Consumer awareness and education' }, { value: 'OCEAN_ACIDIFICATION', label: 'Mitigation of ocean acidification' }, { value: 'OTHER', label: 'Other' }, ] interface StepProjectProps { form: UseFormReturn } export function StepProject({ form }: StepProjectProps) { const { register, formState: { errors }, setValue, watch } = form const oceanIssue = watch('oceanIssue') const description = watch('description') || '' return ( {/* Project Name */}
{errors.projectName && (

{errors.projectName.message}

)}
{/* Team Name (optional) */}
{/* Ocean Issue */}
{errors.oceanIssue && (

{errors.oceanIssue.message}

)}
{/* Description */}

Keep it brief - you'll have the opportunity to provide more details later.