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;