mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
12 lines
371 B
TypeScript
12 lines
371 B
TypeScript
import HookOrDefault from 'sentry/components/hookOrDefault';
|
|
|
|
export const InviteModalHook = HookOrDefault({
|
|
hookName: 'member-invite-modal:customization',
|
|
defaultComponent: ({onSendInvites, children}) =>
|
|
children({sendInvites: onSendInvites, canSend: true}),
|
|
});
|
|
|
|
export type InviteModalRenderFunc = React.ComponentProps<
|
|
typeof InviteModalHook
|
|
>['children'];
|