Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const ModalBoxHeader = ({ hideTitle, children, className, ...props }) => {
const hidden = hideTitle ? css(accessibleStyles.screenReader) : '';
return
<title size="2xl">
{children}
</title>
;
};
const Alert = ({
variant,
variantLabel,
'aria-label': ariaLabel = getDefaultAriaLabel(variant),
action,
title,
children,
className,
...props
}) => {
variantLabel = variantLabel || capitalize(AlertVariant[variant]);
const readerTitle = (
<span>{`${variantLabel} alert:`}</span>
{title}
);
const customClassName = css(styles.alert, getModifier(styles, variant, styles.modifiers.info), className);
return (
<div aria-label="{ariaLabel}">
<h4>{readerTitle}</h4>
{children && (
<div>
<p>{children}</p>
</div>
)}
{action && (</div>
value={{
showBreadcrumb,
}}
>