From b643f0438845f47a90f4ad7290b691d1c8829ded Mon Sep 17 00:00:00 2001 From: mehbark Date: Mon, 10 Jul 2023 14:57:18 -0400 Subject: [PATCH] only peopleify the subjects --- html/hot_people_who_eat_croissants_are_dangerous.tsx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/html/hot_people_who_eat_croissants_are_dangerous.tsx b/html/hot_people_who_eat_croissants_are_dangerous.tsx index 66521ec..633b818 100644 --- a/html/hot_people_who_eat_croissants_are_dangerous.tsx +++ b/html/hot_people_who_eat_croissants_are_dangerous.tsx @@ -1,9 +1,12 @@ import { Html, debug_render } from "./html.ts"; import { Component } from "./jsx/jsx-runtime.ts"; +const peopleify = (...people: string[]): string[] => + people.map(p => `${p} people`); + const wheel = (...items: Html[]): Html => (
- {...items.map(i =>
{i} people
)} + {...items.map(i =>
{i}
)}
); @@ -17,7 +20,7 @@ const Take: Component = ({ subjects, objects, adjectives }, _) => ( // might want to have the final item be seperate debug_render(