import { createStyles, Title, useMantineTheme, getStylesRef } from '@mantine/core'; import { useTranslation } from 'next-i18next'; import { DashDotCompactNetwork, DashDotInfo } from './DashDotCompactNetwork'; import { DashDotCompactStorage } from './DashDotCompactStorage'; interface DashDotGraphProps { graph: string; graphHeight: number; isCompact: boolean; multiView: boolean; dashDotUrl: string; usePercentages: boolean; info: DashDotInfo; } export const DashDotGraph = ({ graph, graphHeight, isCompact, multiView, dashDotUrl, usePercentages, info, }: DashDotGraphProps) => { const { t } = useTranslation('modules/dashdot'); const { classes } = useStyles(); if (graph === 'storage' && isCompact) { return ; } if (graph === 'network' && isCompact) { return ; } const title = t(`card.graphs.${graph}.title`); return (
{title}