import type { NextPage } from "next"; import { useRef } from "react"; import Head from "next/head"; import BookInfoInput from "../components/BookInfoInput"; import DocReceiver from "../components/DocReceiver"; import { bookRequest } from "../lib/fetchers"; // TODO: Make Title Required // TODO: Allow Word File straight w/ images etc upload // TDOO: Add language selection option (Pashto, Arabic, Farsi, Urdu) const Home: NextPage = () => { const mdRef = useRef(null); function handleReceiveText(m: string) { mdRef.current.value = m; } function clearText() { mdRef.current.value = ""; } function handleSubmit(info: { frontmatter: Frontmatter, cover: File | undefined }) { const content = mdRef.current.value as string; bookRequest({ ...info, content, }, { // TODO: Implement progress display etc start: () => null, progress: () => null, error: () => null, }); } return (
RTL EPUB Maker

RTL EPUB Maker 📚

Easily create EPUB e-book files with proper RTL support (🚧 in progress 👷)