import React from 'react' import {Transition, animated} from 'react-spring/renderprops' import styled, { } from 'styled-components' const ComponentContainer = styled.div` display: flex; flex-direction: column; overflowY: hidden; align-items: center; ` const PageContainer = styled.div` height: 600px; position: relative; width: 100%; cursor: pointer; margin-bottom: 8px; overflow-x: hidden; & > div { will-change: transform, opacity; position: absolute; width: 100%; height: 100%; } ` const StyledImage = styled(animated.div)<{src:string, width:number | string, height: number| string}>` width: ${props=> props.width? props.width: '100%'}; height: ${props=> props.height? props.height: '100%'}; display: flex; justify-content: center; align-items: center; background: ${props=> `url('${props.src}')`} no-repeat center; background-size: contain; ` const PageComponent = (props: any)=>{ const {src, width, height} = props return } function BookComponent(props: any) { const {src, currIndex, flagToReverse} = props return ( { currIndex=> style=>{ return( {React.createElement(()=>)} ) } } ) } export {ComponentContainer, PageContainer, PageComponent, BookComponent as default }