:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
import { ProfilePicture } from 'lib/lemon-ui/ProfilePicture'
import { ScenePanelLabel } from '~/layout/scenes/SceneLayout'
import { UserBasicType } from '~/types'
import { TZLabel } from '../TZLabel'
interface SceneActivityIndicatorProps {
prefix?: string
at?: string
by?: UserBasicType | null | undefined
}
export function SceneActivityIndicator({
at,
by,
prefix = 'Last modified',
}: SceneActivityIndicatorProps): JSX.Element | null {
return at || by ? (
<ScenePanelLabel title={prefix}>
<span className="flex items-center gap-1 whitespace-normal flex-wrap">
{at && <TZLabel time={at} className="w-fit" />}
{by && (
<>
<span className="text-secondary">by</span>
<ProfilePicture user={by} showName size="md" />
</>
)}
</span>
</ScenePanelLabel>
) : null
}