({ squad }: { squad: Squad })
| 33 | } |
| 34 | |
| 35 | const 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 | |
| 62 | export function SquadMemberModal({ |
| 63 | squad, |
nothing calls this directly
no test coverage detected