Browse Source
Co-authored-by: Jip Frijlink <JipFr@users.noreply.github.com> Co-authored-by: James Hawkins <jhawki2005@gmail.com> Co-authored-by: William Oldham <wegg7250@gmail.com>pull/143/head
9 changed files with 61 additions and 34 deletions
@ -0,0 +1,22 @@
@@ -0,0 +1,22 @@
|
||||
import { Icon, Icons } from "@/components/Icon"; |
||||
import { useVideoPlayerDescriptor } from "@/video/state/hooks"; |
||||
import { useMisc } from "@/video/state/logic/misc"; |
||||
import { useTranslation } from "react-i18next"; |
||||
|
||||
export function CastingTextAction() { |
||||
const { t } = useTranslation(); |
||||
|
||||
const descriptor = useVideoPlayerDescriptor(); |
||||
const misc = useMisc(descriptor); |
||||
|
||||
if (!misc.isCasting) return null; |
||||
|
||||
return ( |
||||
<div className="flex flex-col items-center justify-center gap-4"> |
||||
<div className="rounded-full bg-denim-200 p-3 brightness-100 grayscale"> |
||||
<Icon icon={Icons.CASTING} /> |
||||
</div> |
||||
<p className="text-center text-gray-300">{t("casting.casting")}</p> |
||||
</div> |
||||
); |
||||
} |
Loading…
Reference in new issue