import { useTranslate } from "ra-core"; import { ReferenceField } from "@/components/ds/admin/reference-field"; import { CompanyAvatar } from "../companies/CompanyAvatar"; import { RelativeDate } from "../misc/RelativeDate"; import { SaleName } from "../sales/SaleName"; import type { ActivityCompanyNoteCreated } from "../types"; import { useActivityLogContext } from "./ActivityLogContext"; import { ActivityLogNote } from "./ActivityLogNote"; type ActivityLogCompanyNoteCreatedProps = { activity: ActivityCompanyNoteCreated; }; export function ActivityLogCompanyNoteCreated({ activity, }: ActivityLogCompanyNoteCreatedProps) { const translate = useTranslate(); const context = useActivityLogContext(); const { companyNote } = activity; return (  {translate("crm.activity.added_note_about")}  {context === "company" && ( )} } text={companyNote.text} /> ); }