All Downloads are FREE. Search and download functionalities are using the official Maven repository.

components.wm.components.TitleComponent.tsx Maven / Gradle / Ivy

There is a newer version: 0.80.3
Show newest version
import React from 'react';

import { Box, Divider, Typography } from '@mui/material';

import { usePaneContext } from '../hooks/usePaneContext';

export const TitleComponent = () => {
  const { title, subtitle } = usePaneContext();

  if (title != undefined) {
    return (
      
        
          {typeof title === 'function' ? title() : title}
          {subtitle != undefined
            ?  theme.palette.grey[700]}}>{typeof subtitle === 'function' ? subtitle() : subtitle}
            : null}
        
        
      
    );
  } else return null;
};




© 2015 - 2024 Weber Informatics LLC | Privacy Policy