MCPcopy Create free account
hub / github.com/atomicdata-dev/atomic-data-browser / Show

Function Show

data-browser/src/routes/ShowRoute.tsx:9–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7
8/** Renders either the Welcome page, an Individual resource, or search results. */
9const Show: React.FunctionComponent = () => {
10 // Value shown in navbar, after Submitting
11 const [subject] = useCurrentSubject();
12
13 if (subject == undefined || subject == '') {
14 return <About />;
15 }
16 if (isValidURL(subject)) {
17 return <ResourcePage key={subject} subject={subject} />;
18 } else {
19 return <Search />;
20 }
21};
22
23export default Show;

Callers

nothing calls this directly

Calls 2

useCurrentSubjectFunction · 0.90
isValidURLFunction · 0.90

Tested by

no test coverage detected