MCPcopy
hub / github.com/OpenWebGAL/WebGAL / renderButtonText

Function renderButtonText

packages/webgal/src/UI/Title/Title.tsx:36–42  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

34 const appreciationItems = useSelector((state: RootState) => state.userData.appreciationData);
35 const hasAppreciationItems = appreciationItems.bgm.length > 0 || appreciationItems.cg.length > 0;
36 const renderButtonText = (text: string) => (
37 <div className={applyStyle('Title_button_text', styles.Title_button_text)}>
38 {text}
39 <span className={applyStyle('Title_button_text_outer', styles.Title_button_text_outer)}>{text}</span>
40 <span className={applyStyle('Title_button_text_inner', styles.Title_button_text_inner)}>{text}</span>
41 </div>
42 );
43
44 return (
45 <>

Callers 1

TitleFunction · 0.85

Calls 1

applyStyleFunction · 0.50

Tested by

no test coverage detected