Skip to main content
Glama
ConfirmationsStep.tsx1.63 kB
import { Button, H2 } from '@intlayer/design-system'; import { useUser } from '@intlayer/design-system/hooks'; import { Check } from 'lucide-react'; import { useRouter } from 'next/navigation'; import { useIntlayer } from 'next-intlayer'; import type { FC } from 'react'; import { PagesRoutes } from '@/Routes'; import { StepLayout } from '../StepLayout'; import { Steps } from '../steps'; import { useStep } from '../useStep'; export const ConfirmationsStep: FC = () => { const { user } = useUser(); const router = useRouter(); const { goPreviousStep } = useStep(Steps.Confirmation); const { confirmation, goToDashboardButton } = useIntlayer('confirmation-step'); return ( <> <StepLayout onGoToPreviousStep={goPreviousStep} hideNextButton> <H2>{confirmation.title}</H2> <div className="flex flex-col items-center justify-center gap-5 py-6"> <span className="text-sm"> {confirmation.hiText.value.replace( '{name}', user?.name ?? user?.email ?? '' )} </span> <span className="text-neutral text-sm"> {confirmation.description} </span> <div className="m-auto aspect-square rounded-full bg-success/30 p-5"> <Check className="text-success" size={50} /> </div> </div> </StepLayout> <Button label={goToDashboardButton.label.value} color="text" Icon={Check} onClick={() => router.push(PagesRoutes.Dashboard)} isFullWidth > {goToDashboardButton.text} </Button> </> ); };

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/aymericzip/intlayer'

If you have feedback or need assistance with the MCP directory API, please join our Discord server