+
+
Share Review Timestamp
+
+ Share the current player position or choose a custom timestamp.
+
+
+
+
+ setSelectedOption(value as "current" | "custom")
+ }
+ >
+
+
+
+
+
+
+
+
+
+
+
+
+ {selectedOption === "custom" && (
+
+ )}
+
+
+
+
+
+
+
+ );
+}
+
+type CustomTimestampSelectorProps = {
+ timestamp: number;
+ setTimestamp: (timestamp: number) => void;
+ label: string;
+};
+
+function CustomTimestampSelector({
+ timestamp,
+ setTimestamp,
+ label,
+}: CustomTimestampSelectorProps) {
+ const { t } = useTranslation(["common"]);
+ const { data: config } = useSWR