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