import { toChildArray, ComponentChildren } from "preact"; import { Main, render_and_copy } from "./common.tsx"; // idea is to have buttons you can click to type out words, should be fun // (and maybe possible) // new idea: type out eggbug or you LOSE const Key = ({ letter }: { letter: string }) => (
{letter}
{letter}
); const sentence = "cwm fjord bank glyphs vext quiz"; const KeyRow = ({ keys }: { keys: string }) => (
{...keys.split("").map(letter => )}
); const Keyboard = ({ children }: { children: ComponentChildren }) => (
{...toChildArray(children)}
); const Out = () =>
; render_and_copy(
);