import React, { useState } from 'react'; import { Button } from '../ui/button'; import { X, Image as ImageIcon, Video, Mic2, BarChart, Hash } from 'lucide-react'; import { useToast } from '../../context/ToastContext'; interface CreatePostModalProps { onClose: () => void; onCreate: (postData: { content: string; visibility: string; type: string }) => void; } export const CreatePostModal: React.FC = ({ onClose, onCreate }) => { const { addToast } = useToast(); const [content, setContent] = useState(''); const [visibility, setVisibility] = useState('public'); const [postType, setPostType] = useState('text'); // text, image, audio, etc. const handleSubmit = () => { if (!content) return; onCreate({ content, visibility, type: postType }); onClose(); }; const insertHashtag = (tag: string) => { setContent(prev => `${prev } #${tag} `); }; return (

Create Post