OJ
Size: a a a
OJ
PD
ИШ
PD
ИШ
AM
PD
😎О
😎О
PD
const LinkWithAnchor = ({ text, anchor }) => {
const router = useRouter();
const {
basePath,
locale,
} = router;
const handleClick = (event) => {
event.preventDefault();
const href = `${basePath}/${locale}/welcome-ext-installed#${anchor}`;
router.push(
{
pathname: href,
}, href,
{ shallow: true },
);
};
return (
<h4>
<StyledLink onClick={handleClick}>
{text}
</StyledLink>
</h4>
);
};OJ
PD
<img
alt=""
src="urlImage"
/>
PD

const DemoImage = ({ imageUrl }) => {
useEffect(() => {
async function fetchHeaders() {
try {
const response = await fetch(
imageUrl, {
credentials: "include",
},
);
console.log(response));
} catch (err) {
console.error("Image Fetch Error:\n", err);
}
}
fetchHeaders();
}, [imageUrl]);
return (
<ImageContainer>
<img
alt=""
src={imageUrl}
/>
</ImageContainer>
);
};ИШ
ИШ
ИШ
ИШ