mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
23 lines
749 B
TypeScript
23 lines
749 B
TypeScript
![]() |
import IconButton from '@mui/material/IconButton/IconButton';
|
||
|
import PermMedia from '@mui/icons-material/PermMedia';
|
||
|
import React, { type FC } from 'react';
|
||
|
import { Link } from 'react-router-dom';
|
||
|
|
||
|
import type { ActivityLogEntryCell } from 'apps/dashboard/features/activity/types/ActivityLogEntryCell';
|
||
|
import globalize from 'lib/globalize';
|
||
|
|
||
|
const ActionsCell: FC<ActivityLogEntryCell> = ({ row }) => (
|
||
|
row.original.ItemId ? (
|
||
|
<IconButton
|
||
|
size='large'
|
||
|
title={globalize.translate('LabelMediaDetails')}
|
||
|
component={Link}
|
||
|
to={`/details?id=${row.original.ItemId}`}
|
||
|
>
|
||
|
<PermMedia fontSize='inherit' />
|
||
|
</IconButton>
|
||
|
) : undefined
|
||
|
);
|
||
|
|
||
|
export default ActionsCell;
|