({
title,
content,
image,
className,
typographyClasses = {
title: 'font-bold typo-title3',
content: 'text-text-tertiary typo-callout',
},
}: BoxContentImageProps)
| 73 | } |
| 74 | |
| 75 | export const BoxContentImage = ({ |
| 76 | title, |
| 77 | content, |
| 78 | image, |
| 79 | className, |
| 80 | typographyClasses = { |
| 81 | title: 'font-bold typo-title3', |
| 82 | content: 'text-text-tertiary typo-callout', |
| 83 | }, |
| 84 | }: BoxContentImageProps): ReactElement => { |
| 85 | return ( |
| 86 | <Box className={className}> |
| 87 | <h3 |
| 88 | className={typographyClasses.title} |
| 89 | dangerouslySetInnerHTML={{ |
| 90 | __html: sanitizeMessage(title), |
| 91 | }} |
| 92 | /> |
| 93 | <div> |
| 94 | <LazyImage |
| 95 | eager |
| 96 | ratio="100%" |
| 97 | imgSrc={image.src} |
| 98 | imgAlt={image.alt} |
| 99 | className={classNames( |
| 100 | 'float-right mb-2 ml-2 h-20 w-20', |
| 101 | image.className, |
| 102 | )} |
| 103 | fit="contain" |
| 104 | /> |
| 105 | <p |
| 106 | className={typographyClasses.content} |
| 107 | dangerouslySetInnerHTML={{ __html: sanitizeMessage(content) }} |
| 108 | /> |
| 109 | </div> |
| 110 | </Box> |
| 111 | ); |
| 112 | }; |
| 113 | |
| 114 | export interface BoxFaqProps extends BoxBaseProps { |
| 115 | items: { |
nothing calls this directly
no test coverage detected