import React, { useState } from 'react'; import TokenForm, { TokenFormProps } from '../components/token-form'; const Playground = ( { children, setOpenApiJson, setToken }: Partial ) => { const [isTokenValid, setIsTokenValid] = useState(false) return ( <> { isTokenValid && children } ) } export default Playground;