MCPcopy Create free account
hub / github.com/dailydotdev/apps / BoxContentImage

Function BoxContentImage

packages/shared/src/features/onboarding/shared/Box.tsx:75–112  ·  view source on GitHub ↗
({
  title,
  content,
  image,
  className,
  typographyClasses = {
    title: 'font-bold typo-title3',
    content: 'text-text-tertiary typo-callout',
  },
}: BoxContentImageProps)

Source from the content-addressed store, hash-verified

73}
74
75export 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
114export interface BoxFaqProps extends BoxBaseProps {
115 items: {

Callers

nothing calls this directly

Calls 1

sanitizeMessageFunction · 0.90

Tested by

no test coverage detected