import { useNow } from "../lib/hooks.ts";
import { juice, label } from "../lib/life.ts";
function Clock({ born, now }) {
const words = label(born, now).split(" ");
const head = words.shift();
const end = words.length ? ` ${words.pop()}` : "";
const trim = words.join(" ");
return (
{head}
{trim ? {` ${trim}`} : null}
{end}
);
}
export function Life({ born, bar = false, now: built = 0 }) {
const now = useNow(built);
return (
{bar ? (
) : null}
);
}