// new idea: beeg tree import { render } from "preact-render-to-string"; import { Filler, render_and_copy } from "./common.tsx"; // there's more size savings to be had but jsx is bad for that const Key = ({ code, content, remaining_depth, }: { code: string; content: string; remaining_depth: number; }) => (
{code}
); // toki pono or whatever that is // oh my gosh this is such a stupid alphabet const alphabet = "acgt"; // i went to immense pains to make it so that you have 6 characters for catcat // nvm this isn't working const Screen = ({ content = "", remaining_depth, }: { content?: string; remaining_depth: number; }) => remaining_depth == 0 ? (
{content}
) : (
{content == "" ? "come on do it write some dna" : content + ".".repeat(remaining_depth)} {alphabet.split("").map(c => ( ))}
); render_and_copy( <> );