import type { FC } from 'react'; import React from 'react'; import type { HasObjectId } from '@growi/core'; import { PagePathLabel } from '@growi/ui/dist/components'; import type { IInAppNotification } from '~/interfaces/in-app-notification'; import FormattedDistanceDate from '../../FormattedDistanceDate'; type Props = { notification: IInAppNotification & HasObjectId actionMsg: string actionIcon: string actionUsers: string hideActionUsers?: boolean subMsg?: JSX.Element }; export const ModelNotification: FC = ({ notification, actionMsg, actionIcon, actionUsers, hideActionUsers = false, subMsg, }: Props) => { return (
{hideActionUsers ? <> : {actionUsers}} {` ${actionMsg}`}
{ subMsg } {actionIcon}
); };