async function RandomDog({ throttle = false }) {
const res = await fetch("https://dog.ceo/api/breeds/image/random");
const data = await res.json();
if (throttle) {
await Promises.delay(1000);
}
return jsx`
<a target="_blank" href=${data.message}>
<img class="img-fluid" src=${data.message} alt="A Random Dog" width="300" />
</a>
`;
}