import React from "react"; import styled from "styled-components"; import Flex from "../../components/Box/Flex"; import { Box } from "../../components/Box"; import { ArrowBackIcon, CloseIcon } from "../../components/Svg"; import { IconButton } from "../../components/Button"; import { ModalProps } from "./types"; export const ModalHeader = styled.div<{ background?: string }>` align-items: center; background: ${({ background }) => background || "transparent"}; border-bottom: 1px solid ${({ theme }) => theme.colors.borderColor}; display: flex; padding: 12px 24px; `; export const ModalTitle = styled(Flex)` align-items: center; flex: 1; `; export const ModalBody = styled(Flex)` flex-direction: column; `; export const ModalCloseButton: React.FC<{ onDismiss: ModalProps["onDismiss"] }> = ({ onDismiss }) => { return ( ); }; export const ModalBackButton: React.FC<{ onBack: ModalProps["onBack"] }> = ({ onBack }) => { return ( ); }; export const ModalContainer = styled(Box)<{ minWidth: string }>` background: ${({ theme }) => theme.modal.background}; box-shadow: 0px 20px 36px -8px rgba(14, 14, 44, 0.1), 0px 1px 1px rgba(0, 0, 0, 0.05); border: 1px solid ${({ theme }) => theme.colors.borderColor}; border-radius: 32px; width: 100%; z-index: ${({ theme }) => theme.zIndices.modal}; ${({ theme }) => theme.mediaQueries.xs} { width: auto; min-width: ${({ minWidth }) => minWidth}; max-width: 100%; } `;