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

Function getLogEvent

packages/shared/src/components/LoginButton.tsx:24–31  ·  view source on GitHub ↗
(copy: ButtonCopy)

Source from the content-addressed store, hash-verified

22 Signup = 'Sign up',
23}
24const getLogEvent = (copy: ButtonCopy): LogEvent => ({
25 event_name: 'click',
26 target_type:
27 copy === ButtonCopy.Login
28 ? TargetType.LoginButton
29 : TargetType.SignupButton,
30 target_id: 'header',
31});
32
33export default function LoginButton({
34 className = {},

Callers 1

onClickFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected