snapsteps/src/features/guides/routes/NewGuide.tsx
johannes-hernehult 8a8d495432 feat(guides): scaffold new guide form, hook, and update schemas
- Add useNewGuide hook with state and handlers for guide, frames, and steps
- Add title, description, and file upload inputs to NewGuide
- Add FileUpload component and supporting hooks
- Add guideId to FrameSchema, remove steps and order
- Remove content field and frames array from GuideSchema
- Remove order field from StepsSchema
2026-06-10 20:46:06 +02:00

20 lines
396 B
TypeScript

import FileUpload from "../components/FileUpload";
export default function NewGuide() {
return (
<div>
<form>
<label>
<span>Title</span>
<input type="text" name="title" />
</label>
<label>
<span>Description</span>
<textarea name="description" />
</label>
<FileUpload />
</form>
</div>
);
}