1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-06 00:07:44 +01:00
unleash.unleash/frontend/src/component/project/Project/ProjectInfo/WidgetFooterLink.tsx
2023-02-03 12:58:21 +01:00

29 lines
678 B
TypeScript

import { Link as RouterLink } from 'react-router-dom';
import { Link, Typography } from '@mui/material';
import { FC } from 'react';
interface IWidgetFooterLinkProps {
to: string;
}
export const WidgetFooterLink: FC<IWidgetFooterLinkProps> = ({
children,
to,
}) => {
return (
<Typography
variant="body2"
textAlign="center"
sx={{
paddingTop: theme => theme.spacing(2.5),
marginTop: 'auto',
justifySelf: 'flex-end',
}}
>
<Link component={RouterLink} to={to}>
{children}
</Link>
</Typography>
);
};