all repos — caroster @ b665d19a2b5ab4e6c3f62c5344056a27ed78f486

[Octree] Group carpool to your event https://caroster.io

frontend/containers/GenericMenu/ExternalLink.tsx (view raw)

 1import {Link, MenuItem} from '@mui/material';
 2import React from 'react';
 3
 4type Props = {
 5  label: JSX.Element | string;
 6  url: string;
 7  id: string;
 8};
 9
10const ExternalLink = (props: Props) => {
11  const {label, url, id} = props;
12
13  return (
14    <Link href={url} target="_blank" underline="none">
15      <MenuItem id={id}>{label}</MenuItem>
16    </Link>
17  );
18};
19
20export default ExternalLink;