И
const width = window ? document.body.clientWidth : undefinedSize: a a a
И
const width = window ? document.body.clientWidth : undefinedАР
DT
И
DT
DT
DT
CG
АР
DT
DT
DK
АР
DG
<SmallImage
active={true}
onFocus={handleFocusImage}
src="https://picsum.photos/200/200"
/>
const handleFocusImage = (event) => {
console.log("123");
};
export const SmallImage = styled.div`
cursor: pointer;
margin: 4px 0;
width: 100%;
height: 100%;
background-image: ${({ active }) =>
!active &&
`linear-gradient(rgba(255, 255, 255, 0.70), rgba(255, 255, 255, 0.70)),`}
url(${(props) => props.src});
background-position: center center;
background-repeat: no-repeat;
background-size: cover;
background-color: #f3f3f3;
`;
И
DT
И
АР
И