// @ts-ignore
import { View } from "react-native";

const mockData: NavigationScreenData = {
  screen: {
    id: "screen-id",
    name: "screen",
    data: { source: "" },
    navigations: [],
    hooks: {
      preload_plugins: [
        {
          screen_id: "preload-plugin-id",
          identifier: "preload-plugin-id",
          type: {
            name: "anytype",
            identifier: "anytype",
            type: "player",
            module: View,
          },
        },
      ],
    },
    home: false,
    home_offline: false,
    supports_offline: false,
    ui_components: [
      {
        id: "screen-id",
        name: "screen",
        data: { source: "" },
        navigations: [],
        hooks: {
          preload_plugins: [
            {
              screen_id: "preload-plugin-id",
              identifier: "preload-plugin-id",
              type: {
                name: "anytype",
                identifier: "anytype",
                type: "player",
                module: View,
              },
            },
          ],
        },
        home: false,
        home_offline: false,
        supports_offline: false,
      },
    ],
  },
};

export const useCurrentScreenData = jest.fn().mockReturnValue(mockData.screen);
