import * as React from "react"; import { StoryModalContain, StoryModalCloseBtn } from "./StoryFeedStyledComponents"; import { FullScreenModal } from "@joincivil/components"; import { CloseXButton } from "@joincivil/elements"; export interface StoryModalProps { open: boolean; children: any; handleClose?(): void; } export const StoryModal: React.FunctionComponent = props => { const maxHeight = window.innerHeight - 200; return ( <> {props.handleClose && ( props.handleClose && props.handleClose()} /> )} {props.children} ); };