import { Modal } from './layout/modal' import { Col } from './layout/col' import { Title } from './title' import { TweetButton } from './tweet-button' import { CopyLinkButton } from './copy-link-button' export function SharePostModal(props: { shareUrl: string isOpen: boolean setOpen: (open: boolean) => void }) { const { isOpen, setOpen, shareUrl } = props return ( <CopyLinkButton url={shareUrl} tracking="copy share post link" /> <div className="self-center"> <TweetButton tweetText={shareUrl} /> </div> </Col> </Modal> ) }