refactor(web): remove typescript
This commit is contained in:
12
packages/web/src/helpers/translationValues.jsx
Normal file
12
packages/web/src/helpers/translationValues.jsx
Normal file
@@ -0,0 +1,12 @@
|
||||
import { Link as RouterLink } from 'react-router-dom';
|
||||
import Link from '@mui/material/Link';
|
||||
export const generateInternalLink = (link) => (str) => (
|
||||
<Link component={RouterLink} to={link}>
|
||||
{str}
|
||||
</Link>
|
||||
);
|
||||
export const generateExternalLink = (link) => (str) => (
|
||||
<Link href={link} target="_blank">
|
||||
{str}
|
||||
</Link>
|
||||
);
|
||||
Reference in New Issue
Block a user