import { component$, useTask$ } from "@builder.io/qwik"; import { useNanostore$ } from "~/hooks/nanostores"; import { userInfo } from "~/lib/stores"; import { StereoUser } from "~/lib/types"; export default component$(() => { const greetings = [ "what's on the agenda today, ?", "what's on your mind, ?", "what's the plan, ?", "ready to rock, ?", "what's brewing, ?", "what's the latest, ?", "how's your day going, ?", "need some inspiration, ?", "let's make some noise, !", "welcome back, !", "good to see you, !", "what are we making today, ?", "time to make some magic, !", "let's get creative, !", "what's the vibe today, ?", "let's create something awesome, !", "what's the next big thing, ?", "let's turn ideas into reality, !", "let's see your next masterpiece, !", "let's make some art, !", "what's the next hit, ?", "let's make some music, !", "let's make some waves, !", "what brilliance awaits, ?", "ready to brainstorm, ?", "let's bring ideas to life, !", "don't get any ideas, ...", "let's try this again, !", "let's get this party started, !", "let's make something unforgettable, !", ] const greeting = greetings[Math.floor(Math.random() * greetings.length)]; const user = useNanostore$(userInfo); const splits = greeting.split(""); useTask$(({ track }) => { track(() => user.value); }) return (

{splits[0]} @{user.value?.username || "..."} {splits[1]}

) })