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

Function InitialItem

packages/shared/src/components/modals/SquadMemberModal.tsx:35–60  ·  view source on GitHub ↗
({ squad }: { squad: Squad })

Source from the content-addressed store, hash-verified

33}
34
35const InitialItem = ({ squad }: { squad: Squad }) => {
36 const { copying, logAndCopyLink } = useSquadInvitation({
37 squad,
38 origin: Origin.SquadMembersList,
39 });
40
41 if (!verifyPermission(squad, SourcePermissions.Invite)) {
42 return null;
43 }
44
45 return (
46 <button
47 type="button"
48 disabled={copying}
49 className="flex items-center justify-start px-6 py-3 hover:bg-surface-hover"
50 onClick={() => {
51 logAndCopyLink();
52 }}
53 >
54 <FlexCentered className="mr-4 h-12 w-12 rounded-10 bg-surface-float">
55 <LinkIcon size={IconSize.Large} className="text-raw-salt-90" />
56 </FlexCentered>
57 <p className="text-raw-salt-90 typo-callout">Copy invitation link</p>
58 </button>
59 );
60};
61
62export function SquadMemberModal({
63 squad,

Callers

nothing calls this directly

Calls 3

useSquadInvitationFunction · 0.90
verifyPermissionFunction · 0.90
logAndCopyLinkFunction · 0.50

Tested by

no test coverage detected