import React from "react"; import { Helmet } from "react-helmet"; interface Props { name?: string; description?: string; } function AppViewerHtmlTitle(props: Props) { const { description, name } = props; // if no name is passed, just return null if (!name) return null; return ( {name} {description && } ); } export default AppViewerHtmlTitle;