import * as React from "react"; import styled from "styled-components"; import { Box, Button, Card, Flex, Modal } from "rimble-ui"; import { H3 } from "../layouts"; import { baseColors } from "../../themes"; const IconButton = styled(Button.Text)` color: ${baseColors.black}; &:hover { color: ${baseColors.blurple}; } `; export interface ModalWithXProps { isOpen?: boolean; hideX?: boolean; close(): any; /** Any additional props will be passed to Rimble `Card` component around the modal: */ [key: string]: any; } export const ModalWithX: React.FunctionComponent = (props) => { return ( {!props.hideX && ( )} {props.children} ); }; export interface ModalBackProps { onClick(e: MouseEvent): any; } export const ModalBack: React.FunctionComponent = (props) => { return ; }; export const ModalHeader: React.FunctionComponent = (props) => (

); export const ModalContent = styled(Box)` flex-grow: 1; min-height: 0; overflow: auto; padding: 0 24px 16px; `; export const ModalContentFullWidth = styled(ModalContent)` padding-left: 0; padding-right: 0; `; export const ModalFooter = styled(Box)` padding: 0 24px; `;