import React, { FC } from 'react';
import { Icon, styled, styledScrollbars } from '@jarvisnetwork/ui';
interface ModalHeaderProps {
title: string;
onBack: () => void;
}
export const ImgContainer = styled.div`
flex: 1;
@media screen and (max-width: ${(props) =>
props.theme.rwd.breakpoints[props.theme.rwd.desktopIndex]}px) {
justify-content: center;
align-items: center;
}
`;
export const Img = styled.img`
display: block;
margin: auto;
height: 112px;
@media screen and (max-width: ${(props) =>
props.theme.rwd.breakpoints[props.theme.rwd.desktopIndex]}px) {
height: 80%;
width: 80%;
object-fit: contain;
}
`;
export const ModalContainer = styled.div`
background: ${(props) => props.theme.scroll.background};
color: ${(props) => props.theme.text.primary};
border-radius: 27px;
padding: 27px;
height: 485px;
width: 476px;
box-sizing: border-box;
display: flex;
flex-direction: column;
overflow: hidden;
@media screen and (max-width: ${(props) =>
props.theme.rwd.breakpoints[props.theme.rwd.mobileIndex]}px) {
min-width: 80vw;
max-width: calc(100% - 60px);
max-height: 600px;
width: auto;
height: auto;
padding: 1em;
margin: auto;
overflow: auto;
}
`;
export const ModalFooter = styled.div`
display: flex;
justify-content: flex-end;
`;
export const IconButton = styled.button`
border: none;
background: none;
padding: 10px;
cursor: pointer;
outline: none !important;
i svg {
right: -10px;
width: 24px;
height: 24px;
position: relative;
top: 3px;
fill: ${(props) => props.theme.text.primary};
}
`;
const RotatedIcon = styled(Icon)`
transform: rotate(-90deg);
`;
export const ChevronRight = () => ;
const HeaderWrapper = styled.div`
display: flex;
align-items: center;
margin-bottom: 8px;
`;
const HeaderTitle = styled.strong`
text-align: center;
margin: auto;
font-size: ${(props) => props.theme.font.sizes.l};
`;
const HeaderIconButton = styled(IconButton)`
padding: 0;
margin-right: 8px;
display: flex;
justify-content: flex-start;
i svg {
right: 0px;
top: 0px;
margin-right: 8px;
}
`;
export const ModalHeader: FC = ({ onBack, title }) => (
{title}
);
export const ContentWrapper = styled.div`
width: 100%;
max-height: 100%;
padding: 15px;
border: 1px solid ${(props) => props.theme.border.secondary};
box-sizing: border-box;
> h1,
> h2 {
text-align: center;
paddin-top: 0;
margin-top: 0;
}
> h1 {
font-size: ${(props) => props.theme.font.sizes.l};
}
> h2 {
font-size: ${(props) => props.theme.font.sizes.s};
}
${(props) => styledScrollbars(props.theme)}
`;