This repository has been archived on 2022-10-07. You can view files and clone it, but cannot push or open issues or pull requests.
2022-02-23 10:26:17 +00:00
|
|
|
import styled from "styled-components";
|
|
|
|
import PropTypes from "prop-types";
|
|
|
|
|
|
|
|
const Slide = styled.div.attrs(({ isVisible }) => ({
|
2022-03-22 12:46:04 +00:00
|
|
|
className: `slider-slide transition-opacity ${isVisible ? "" : "opacity-50 cursor-pointer select-none"}`,
|
2022-02-23 10:26:17 +00:00
|
|
|
}))``;
|
|
|
|
|
|
|
|
Slide.propTypes = {
|
|
|
|
isVisible: PropTypes.bool.isRequired,
|
|
|
|
};
|
|
|
|
|
|
|
|
export default Slide;
|