import { Link } from "react-router"; import { useTranslate } from "ra-core"; import { ReferenceField } from "@/components/ds/admin/reference-field"; import { Avatar } from "../contacts/Avatar"; import { RelativeDate } from "../misc/RelativeDate"; import { SaleName } from "../sales/SaleName"; import type { ActivityContactCreated } from "../types"; import { useActivityLogContext } from "./ActivityLogContext"; type ActivityLogContactCreatedProps = { activity: ActivityContactCreated; }; export function ActivityLogContactCreated({ activity, }: ActivityLogContactCreatedProps) { const translate = useTranslate(); const context = useActivityLogContext(); const { contact } = activity; return (