import { CheckCircle, Circle, X } from "lucide-react"; import { useTranslate, useUpdate, type Identifier } from "ra-core"; import { Link } from "react-router"; import { CreateButton } from "@/components/ds/admin/create-button"; import { Progress } from "@/components/ds/ui/progress"; import { Button } from "@/components/ds/ui/button"; import { Card, CardContent } from "@/components/ds/ui/card"; import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, } from "@/components/ds/ui/tooltip"; import { ContactImportButton } from "../contacts/ContactImportButton"; import useAppBarHeight from "../misc/useAppBarHeight"; export const DashboardStepper = ({ step, contactId, }: { step: number; contactId?: Identifier; }) => { const translate = useTranslate(); const appbarHeight = useAppBarHeight(); const [update] = useUpdate(); const handleDismiss = () => { update("business_profile", { id: 1, data: { onboarding_completed: true }, previousData: { onboarding_completed: false }, }); }; return (

Dismiss onboarding checklist for everyone

{translate("crm.dashboard.stepper.title")}

{translate("crm.dashboard.stepper.progress", { step, total: 3, })}

{translate("crm.dashboard.stepper.install")}

{step > 1 ? ( ) : ( )}

{translate("crm.dashboard.stepper.add_contact")}

{translate("crm.dashboard.stepper.add_note")}

{translate("crm.dashboard.stepper.add_note_hint")}

); };