import { View, Text } from '@tarojs/components' import type { ReactNode } from 'react' import styles from './index.module.scss' interface Props { visible: boolean title?: string onClose: () => void children: ReactNode } export function BottomSheet({ visible, title, onClose, children }: Props) { if (!visible) return null return ( <> {title && ( {title} × )} {children} ) }