import { useTheme } from '@/components/ThemeContext';
import { FilterProvider } from '@/components/ui/FilterContext';
import { CustomHeader } from '@/components/ui/Header';
import CreateAdsScreens from '@/screens/create-ads/ui/CreateAdsScreens';
import { SafeAreaView } from 'react-native-safe-area-context';

export default function CreateAnnouncements() {
  const { isDark } = useTheme();
  return (
    <FilterProvider>
      <SafeAreaView style={{ flex: 1, backgroundColor: isDark ? '#0f172a' : '#ffffff' }}>
        <CustomHeader />
        <CreateAdsScreens />
      </SafeAreaView>
    </FilterProvider>
  );
}
