import React, { useState } from 'react'; import { Modal, View, StyleSheet, TextInput } from 'react-native'; import { useTheme } from '~/features/theme/ThemeProvider'; import Text from '~/components/atoms/Text'; import Button from '~/components/atoms/Button'; interface CreateSpaceModalProps { visible: boolean; onClose: () => void; onSubmit: (name: string) => void; } export function CreateSpaceModal({ visible, onClose, onSubmit }: CreateSpaceModalProps) { const { isDark } = useTheme(); const [name, setName] = useState(''); const handleSubmit = () => { if (name.trim()) { onSubmit(name); setName(''); // Reset the input } }; return ( Create New Space