import React from 'react'; import { PagePathLabel } from '@growi/ui'; import { InAppNotification as IInAppNotification } from '../../interfaces/in-app-notification'; import FormattedDistanceDate from '../FormattedDistanceDate'; interface Props { actionUsers: string notification: IInAppNotification onClick: () => void } export const PageCommentNotification = (props: Props): JSX.Element => { const pagePath = { path: props.notification.target.path }; return ( <>
{props.actionUsers} commented on
); }; export const PageUpdateNotification = (props: Props): JSX.Element => { const pagePath = { path: props.notification.target.path }; return ( <>
{props.actionUsers} page updated on
); };