mirror of
https://github.com/Unleash/unleash.git
synced 2025-04-10 01:16:39 +02:00
 
46 lines
1.1 KiB
TypeScript
46 lines
1.1 KiB
TypeScript
import { styled, Typography } from '@mui/material';
|
|
|
|
import { formatAssetPath } from '../../../utils/formatPath';
|
|
import { FC } from 'react';
|
|
|
|
export const StyledFigure = styled('figure')(({ theme }) => ({
|
|
display: 'flex',
|
|
gap: theme.spacing(2),
|
|
flexDirection: 'column',
|
|
}));
|
|
|
|
export const StyledFigCaption = styled('figcaption')(({ theme }) => ({
|
|
display: 'flex',
|
|
gap: theme.spacing(2),
|
|
flexDirection: 'column',
|
|
}));
|
|
|
|
export const StyledImg = styled('img')({
|
|
maxWidth: '100%',
|
|
maxHeight: '100%',
|
|
width: 'auto',
|
|
height: 'auto',
|
|
});
|
|
|
|
interface JiraIntegrationProps {
|
|
title: string;
|
|
description: string;
|
|
src: string;
|
|
}
|
|
|
|
export const JiraImageContainer: FC<JiraIntegrationProps> = ({
|
|
title,
|
|
description,
|
|
src,
|
|
}) => {
|
|
return (
|
|
<StyledFigure>
|
|
<StyledFigCaption>
|
|
<Typography variant={'h3'}>{title}</Typography>
|
|
<Typography>{description}</Typography>
|
|
</StyledFigCaption>
|
|
<StyledImg src={formatAssetPath(src)} alt={title} />
|
|
</StyledFigure>
|
|
);
|
|
};
|