all repos — caroster @ 0d2b887d6af149ec648817c5709cd9f99a7f9b41

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

frontend/containers/NewTravelDialog/FAQLink.tsx (view raw)

 1import Link from '@material-ui/core/Link';
 2import useSettings from '../../hooks/useSettings';
 3
 4interface Props {
 5  text: string;
 6  link: string;
 7}
 8
 9const FAQLink = ({text, link}: Props) => {
10  const settings = useSettings();
11
12  return <Link target="_blank" href={`${settings?.faq_link}${link}`}>{text}</Link>;
13};
14
15export default FAQLink;