import { ComponentChildren, toChildArray } from "preact"; import { Main, render_and_copy, shuffle, n_of } from "./common.tsx"; const tag_link = (tag: string) => `https://cohost.org/rc/tagged/${tag}`; const Tag = ({ tag }: { tag: string }) => ( {`#${tag}`} ); const tags = [ "CSS Crimes", "borgesposting", "NEISVoid", "circling the square", "retrocomputing", "cats of cohost", "coho film club", "cohost crafts", "the cohost plural feed", "cohost summer mixtape", "trans trucks", "The Cohost Local Feed (Minnesota)", "cohost draws", "tv head", "make up a mech pilot", "frasierposting", "cohost utilities", "alt text request", "meepismonday", "rats", "worldwide music wednesday", "chaos magick", "tea", "journaling", "digital collage", "gamedev", "manga recs", "doll posting", "comics on cohost", "he is only carbon now", "trickcircle", "Cohost Mixtape Club", "mashup", "girlposting", "jewhost", "musicians on cohost", "ooak", "The Cohost Gimmick Feed", "gardening", "dogs of cohost", "cheeseposting", "love", "little guy respect zone", "gunpla", ]; const default_repeat = 2; // repeating makes it seem more random, but adds a lot of weight to an increasingly heavy post export const PseudoRandom = ({ children, repeat = default_repeat, }: { children: ComponentChildren; repeat?: number; }) => (
{...n_of(repeat, toChildArray(children)) .map(shuffle) .flat() .map(child => {child})}
); /// width is 0-1 export const Choice = ({ children }: { children: ComponentChildren }) => (
{children}
); render_and_copy(
{...tags.map(tag => )} Some notes:
);