import React from 'react'; import { useMedia } from 'react-use'; import { config as cssConfig, Dialog } from '../../..'; import { Sheet } from '../../../Sheet'; import { CaptionContent } from './CaptionContent'; export const CaptionModal = ({ onOpenChange }: { onOpenChange: (value: boolean) => void }) => { const isMobile = useMedia(cssConfig.media.md); const props = { isMobile, onExit: () => { onOpenChange(false); }, }; if (isMobile) { return ( ); } return ( ); };