import React from "react"; type Props = { children: () => React.ReactNode; } & Record; function FocusableiOSComponent({ children }: Props) { if (typeof children === "function") { return <>{children()}; } return children; } export const FocusableiOS = FocusableiOSComponent;