import { InputField } from '@components/common/form/InputField.js'; import { ToggleField } from '@components/common/form/ToggleField.js'; import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@components/common/ui/Card.js'; import { _ } from '@evershop/evershop/lib/locale/translate/_'; import React from 'react'; interface GeneralProps { webhook?: { name?: string; url?: string; enabled?: boolean; } | null; } export default function General({ webhook }: GeneralProps) { return ( {_('General Information')} {_('Where to send the events, and whether this webhook is active.')} ); } export const layout = { areaId: 'wideScreen', sortOrder: 10 }; export const query = ` query Query { webhook(id: getContextValue("webhookUuid", null)) { name url enabled } } `;