on master help sign in
urbit.org/components/TabCarousel.js
9 lines 244 B history raw
1// Given multiple children, returns only 1 to be rendered based on props.index
2export default function TabCarousel(props) {
3 if (props.children) {
4 if (props.children[props.index]) {
5 return props.children[props.index]
6 }
7 }
8 return null
9}