{/*
*/}
{...items.map((item: string, i: number) => (
@@ -49,15 +49,21 @@ function slices
(arr: T[]): T[][] {
}
function weird_slices(arr: T[]): T[][] {
+ console.log(arr.map(item => [...arr.filter(t => t != item), item]));
return arr.map(item => [...arr.filter(t => t != item), item]);
}
-const MultiWheel: Component = ({ items }, _) => (
-
- {...weird_slices(items).map(items => (
-
+const MultiWheel: Component = ({ items, type }, _) => (
+
+ {...weird_slices(items).map((items, n) => (
+
))}
-
+
);
@@ -66,9 +72,11 @@ const MultiWheel: Component = ({ items }, _) => (
// it would be possible to have it so the final text is actually properyly selectable maybe but eh
const Take: Component = ({ subjects, objects, adjectives }, _) => (
-
who eat{" "}
-
are{" "}
-
+
{" "}
+
who eat
{" "}
+
{" "}
+
are
{" "}
+
);