Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
href={`#${props.id}`}
sx={{
color: 'inherit',
textDecoration: 'none',
':hover': {
textDecoration: 'underline',
},
}}
>
{props.children}
) : (
);
Component.displayName = isString(Tag) ? capitalize(Tag) : 'Heading';
return Component;
};