import { ShowProvider } from "@/contexts/ShowContext";
import { SeasonProvider } from "@/contexts/SeasonContext";
import { StreamingServiceProvider } from "@/contexts/StreamingServiceContext";
import { PersonProvider } from "@/contexts/PersonContext";
import { Stack } from "expo-router";
import "react-native-reanimated";

export default function RootLayout() {
  return (
    <ShowProvider>
      <SeasonProvider>
        <StreamingServiceProvider>
          <PersonProvider>
            <Stack>
              <Stack.Screen name="(tabs)" options={{ headerShown: false }} />
              <Stack.Screen
                name="showDetails"
                options={{
                  headerShown: false,
                }}
              />
              <Stack.Screen
                name="participant"
                options={{
                  presentation: "fullScreenModal",
                  headerShown: false,
                }}
              />
            </Stack>
          </PersonProvider>
        </StreamingServiceProvider>
      </SeasonProvider>
    </ShowProvider>
  );
}
