export const SAMPLE_JOKE = {
"setup": "What do you call a group of disorganized cats?",
"punchline": "A cat-tastrophe.",
};
function fetchRandomJoke() {
const SAMPLE_JOKE = {
"setup": "What is the best way to explore Italy?",
"punchline": "You rome",
};
return SAMPLE_JOKE;
}
const randomJoke = fetchRandomJoke();
const setup = randomJoke.setup;
const punchline = randomJoke.punchline;
export const emailRandomJoke = email({
text: punchline,
subject: setup,
});
import { email } from "https://esm.town/v/std/email?v=9";