MCPcopy Create free account
hub / github.com/callstack/react-theme-provider / TitleComponent

Function TitleComponent

typings/__tests__/index.test.tsx:36–45  ·  view source on GitHub ↗
({ title, theme }: TitleComponentProps)

Source from the content-addressed store, hash-verified

34};
35
36const TitleComponent = ({ title, theme }: TitleComponentProps) => (
37 <div
38 style={{
39 backgroundColor: theme.backgroundColor,
40 color: theme.primaryColor,
41 }}
42 >
43 {title}
44 </div>
45);
46
47const ThemedTitle = withTheme(TitleComponent);
48

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…