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

Function prevSnippet

packages/shared/src/components/post/PostCodeSnippets.tsx:45–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43 const markdownContent = `~~~\n${codeSnippet.content}\n~~~`;
44
45 const prevSnippet = () => {
46 logEvent(
47 postLogEvent(LogEvent.PreviousSnippet, post, { ...(logOpts && logOpts) }),
48 );
49 setActiveSnippetIndex((prevIndex) => prevIndex - 1);
50 };
51 const nextSnippet = () => {
52 logEvent(
53 postLogEvent(LogEvent.NextSnippet, post, { ...(logOpts && logOpts) }),

Callers

nothing calls this directly

Calls 2

postLogEventFunction · 0.90
logEventFunction · 0.85

Tested by

no test coverage detected