import React from "react";

type Props = {
  children: () => React.ReactNode;
} & Record<string, any>;

function FocusableiOSComponent({ children }: Props) {
  if (typeof children === "function") {
    return <>{children()}</>;
  }

  return children;
}

export const FocusableiOS = FocusableiOSComponent;
