parent
fbac65857d
commit
d81b0e54d7
1 changed files with 25 additions and 0 deletions
@ -0,0 +1,25 @@ |
||||
import { FC } from 'react'; |
||||
import { Link as MUILink, LinkProps as MUILinkProps } from '@mui/material'; |
||||
|
||||
import { GREY } from '../lib/consts/DEFAULT_THEME'; |
||||
|
||||
export type LinkProps = MUILinkProps; |
||||
|
||||
const Link: FC<LinkProps> = ({ children, sx, ...restLinkProps }) => ( |
||||
<MUILink |
||||
{...{ |
||||
underline: 'always', |
||||
variant: 'subtitle1', |
||||
...restLinkProps, |
||||
sx: { |
||||
color: GREY, |
||||
textDecorationColor: GREY, |
||||
...sx, |
||||
}, |
||||
}} |
||||
> |
||||
{children} |
||||
</MUILink> |
||||
); |
||||
|
||||
export default Link; |
Loading…
Reference in new issue