mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
14 lines
472 B
TypeScript
14 lines
472 B
TypeScript
import type { LogLevel } from '@jellyfin/sdk/lib/generated-client/models/log-level';
|
|
import React, { type FC } from 'react';
|
|
|
|
import { ActivityLogEntryCell } from '../types/ActivityLogEntryCell';
|
|
import LogLevelChip from './LogLevelChip';
|
|
|
|
const LogLevelCell: FC<ActivityLogEntryCell> = ({ cell }) => {
|
|
const level = cell.getValue<LogLevel | undefined>();
|
|
return level ? (
|
|
<LogLevelChip level={level} />
|
|
) : undefined;
|
|
};
|
|
|
|
export default LogLevelCell;
|