import * as React from 'react'; import I18n from 'i18n-js'; import Box from '../../common/Box'; import { WebhooksState } from '../../../reducers/webhooksReducer'; import { WebhookPages } from './WebhooksSiteSettingsP'; import Button from '../../common/Button'; import WebhooksList from './WebhooksList'; import SiteSettingsInfoBox from '../../common/SiteSettingsInfoBox'; import ActionLink from '../../common/ActionLink'; import { LearnMoreIcon } from '../../common/Icons'; interface Props { webhooks: WebhooksState; isSubmitting: boolean; isTesting: boolean; submitError: string; handleToggleEnabledWebhook: (id: number, enabled: boolean) => void; handleDeleteWebhook: (id: number) => void; handleTestWebhook: (id: number) => void; setSelectedWebhook: React.Dispatch>; setPage: React.Dispatch>; } const WebhooksIndexPage = ({ webhooks, isSubmitting, isTesting, submitError, handleToggleEnabledWebhook, handleDeleteWebhook, handleTestWebhook, setSelectedWebhook, setPage, }: Props) => { return ( <>

{I18n.t('site_settings.webhooks.title')}

window.open('https://docs.astuto.io/webhooks/webhooks-introduction/', '_blank')} icon={} > {I18n.t('site_settings.webhooks.learn_more')}

); }; export default WebhooksIndexPage;