import * as React from "react";
import { View, ViewStyle } from "react-native";
import { isTvOSPlatform } from "@applicaster/zapp-react-native-utils/reactUtils";

const isTvOS = isTvOSPlatform();

type Props = {
  style: ViewStyle;
  children: React.ReactNode;
};

export const CellWrapper = ({ style, children }: Props) => {
  if (isTvOS) {
    return <View style={style}>{children}</View>;
  }

  return <>{children}</>;
};
