add createStory action
This commit is contained in:
		
							parent
							
								
									ed8e71694f
								
							
						
					
					
						commit
						50409895c0
					
				| 
						 | 
					@ -0,0 +1,4 @@
 | 
				
			||||||
 | 
					"use server"
 | 
				
			||||||
 | 
					export async function createStory(formData: FormData) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
| 
						 | 
					@ -6,5 +6,6 @@ export default async function StoryForm() {
 | 
				
			||||||
		<label htmlFor="word-count">Word Count:</label>
 | 
							<label htmlFor="word-count">Word Count:</label>
 | 
				
			||||||
		<input type="text" id="word-count" />
 | 
							<input type="text" id="word-count" />
 | 
				
			||||||
		<GenreCheckboxes />
 | 
							<GenreCheckboxes />
 | 
				
			||||||
 | 
							<input type="submit" value="Submit" />
 | 
				
			||||||
	</form>
 | 
						</form>
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue