import { styled } from '@stitches/react' import Image from 'next/image' import { Box, HStack, SpanBox, VStack } from '../../elements/LayoutPrimitives' import { Button } from '../../elements/Button' import { Link, Plus } from '@phosphor-icons/react' import { useGetWebhooksQuery } from '../../../lib/networking/queries/useGetWebhooksQuery' import { useMemo } from 'react' // Styles const Header = styled(Box, { color: '$utilityTextDefault', fontSize: 'x-large', margin: '20px', }) interface Webhook { id?: string url: string eventTypes: string contentType?: string method?: string enabled?: string createdAt?: Date updatedAt?: Date } export function Webhooks(): JSX.Element { const { webhooks } = useGetWebhooksQuery() const webhooksList = useMemo(() => { const webhooksList: Array = [] webhooks.forEach((webhookItem) => webhooksList.push({ id: webhookItem.id, url: webhookItem.url, eventTypes: webhookItem.eventTypes.join(', '), method: webhookItem.method, contentType: webhookItem.contentType, createdAt: webhookItem.createdAt, }) ) return webhooksList }, [webhooks]) return ( integration Image
Webhooks
Use Webhooks to Ut enim ad minim veniam, quis nostrud exercitation. Tityre, tu patulae recubans sub tegmine fagi dolor. Etiam habebis sem dicantur magna mollis euismod. {webhooksList.map((item) => { return (

{item.method}

{item.createdAt?.toLocaleDateString()}

) })}
) }