import { useTranslation } from "react-i18next"; import { useHistory } from "react-router-dom"; import { Icon, Icons } from "@/components/Icon"; export function BackLink(props: { url: string }) { const { t } = useTranslation(); const history = useHistory(); return (
history.push(props.url)} className="flex items-center cursor-pointer text-type-secondary hover:text-white transition-colors duration-200 font-medium" > {t("videoPlayer.backToHomeShort")} {t("videoPlayer.backToHome")}
); }