add createStory action

This commit is contained in:
andrzej 2024-06-11 19:21:14 +02:00
parent ed8e71694f
commit 50409895c0
2 changed files with 5 additions and 0 deletions

4
src/app/lib/actions.ts Normal file
View File

@ -0,0 +1,4 @@
"use server"
export async function createStory(formData: FormData) {
}

View File

@ -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>
} }