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

Function getLogEvent

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

Source from the content-addressed store, hash-verified

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

Callers 1

onClickFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected