import { useParams } from 'common'
import { ExternalLink } from 'lucide-react'
import Link from 'next/link'
import { Alert, AlertDescription, AlertTitle, Button, WarningIcon } from 'ui'
import { DOCS_URL } from '@/lib/constants'
export const AuthAlert = ({
title,
isHookSendSMSEnabled,
}: {
title: string
isHookSendSMSEnabled: boolean
}) => {
const { ref } = useParams()
switch (title) {
// TODO (KM): Remove after 10th October 2024 when we disable the provider
case 'Slack (Deprecated)':
return (
Slack (Deprecated) Provider
Recently, Slack has updated their OAuth API. Please use the new Slack (OIDC) provider
below. Developers using this provider should move over to the new provider. Please refer
to our{' '}
documentation
{' '}
for more details.
)
case 'Phone':
return (
isHookSendSMSEnabled && (
SMS provider settings are disabled while the SMS hook is enabled.
The SMS hook will be used in place of the SMS provider configured