<FormField
control={form.control}
name="socials"
render={({ field }) => (
<FormItem>
<FormLabel className="sr-only">Create post</FormLabel>
<FormControl>
{/* I want these inputs to correspond to each element in the array, how do I achieve this? */}
<Input
{...field}
/>
<Input
{...field}
/>
<Input
{...field}
/>
</FormControl>
<FormDescription className="sr-only">
Paste in your Spotify link
</FormDescription>
<FormMessage />
</FormItem>
)}
/>
<FormField
control={form.control}
name="socials"
render={({ field }) => (
<FormItem>
<FormLabel className="sr-only">Create post</FormLabel>
<FormControl>
{/* I want these inputs to correspond to each element in the array, how do I achieve this? */}
<Input
{...field}
/>
<Input
{...field}
/>
<Input
{...field}
/>
</FormControl>
<FormDescription className="sr-only">
Paste in your Spotify link
</FormDescription>
<FormMessage />
</FormItem>
)}
/>