import { Absolute, Theme, useTheme } from 'gloss' import React, { memo } from 'react' import { Button } from '../buttons/Button' import { Scale } from '../Scale' import { getSize } from '../Sizes' import { Space } from '../Space' import { Text } from '../text/Text' import { Stack } from '../View/Stack' import { View } from '../View/View' import { Modal, ModalProps } from './Modal' export const MediaModal = memo( ({ title, subTitle, onChangeOpen, closable, afterTitle, open, size, ...props }: ModalProps) => { const theme = useTheme() const modalBackground = theme.overlayBackground || theme.background.darken(0.1).setAlpha(0.8) return ( {title} {!!subTitle && ( <> {subTitle} )} {!!(afterTitle || closable) && ( {afterTitle || null} {closable && (