import React, { useState } from 'react'
const { Fragment } = React
export default function Component(props) {

  const [open, setOpen] = useState(props.open)
  
  return (
    <Fragment>
    {props.open && props.children}
    </Fragment>
  )
}