export default function checkMktoElementHasId( componentName: string, { id, mktoName }: { id?: string, mktoName?: string } ): void { if (!id) { throw new Error(`${componentName}: Please enter an ID for this to work in Marketo, a wonderous Marketing Automation Platform!`); } if (!mktoName) { throw new Error(`${componentName}: Missing Marketo required attribute "mktoName".`); } }