import { render_and_copy } from "./common.tsx"; import { ComponentChildren } from "preact"; const Rail = ({ rotation, r }: { rotation: string; r: string }) => (
🪜
); const Track = ({ segments, r, children, }: { segments: number; r: string; children?: ComponentChildren; }) => (
{...Array.from({ length: segments }, (_, i) => ( // deg is actually more efficient lel ))} {children}
); render_and_copy(
🚂
);