MCPcopy Create free account
hub / github.com/artsy/force / ExampleApp

Function ExampleApp

src/Apps/Example/ExampleApp.tsx:16–68  ·  view source on GitHub ↗
({
  system,
  children,
})

Source from the content-addressed store, hash-verified

14}
15
16const ExampleApp: React.FC<React.PropsWithChildren<ExampleAppProps>> = ({
17 system,
18 children,
19}) => {
20 if (!system?.time) return null
21
22 const { month, day, year } = system.time
23
24 return (
25 <>
26 <ExampleAppMeta />
27
28 <Box mt={2}>
29 <Text variant="xl">Hello Artsy Dev!</Text>
30 <Text>
31 Wecome to our framework example app. See the links below for a few
32 possibilities.
33 </Text>
34 </Box>
35
36 <Flex mt={2}>
37 <Join separator={<Spacer x={4} />}>
38 <RouterLink to="/example" exact>
39 <Text>Welcome</Text>
40 </RouterLink>
41 <RouterLink to="/example/artist/andy-warhol">
42 <Text>Artist page</Text>
43 </RouterLink>
44 <RouterLink to="/example/artwork/andy-warhol-poinsettias-19">
45 <Text>Artwork page</Text>
46 </RouterLink>
47 <RouterLink to="/example/artwork-filter">
48 <Text>Artwork Filter Example</Text>
49 </RouterLink>
50 <RouterLink to="/example/add-to-collection">
51 <Text>Add To Collection</Text>
52 </RouterLink>
53 <RouterLink to="/example/search">
54 <Text>Search</Text>
55 </RouterLink>
56 </Join>
57 </Flex>
58
59 <Text my={2}>
60 Today is {day}/{month}/{year}.
61 </Text>
62
63 <Separator />
64
65 <Box my={2}>{children}</Box>
66 </>
67 )
68}
69
70export const ExampleAppFragmentContainer = createFragmentContainer(ExampleApp, {
71 system: graphql`

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected