import React from 'react'; import { Moon, Pause, Play, Repeat, Repeat1, SkipBack, SkipForward, Square, Sunrise } from 'lucide-react'; import { invoke } from '@tauri-apps/api/core'; import type { TFunction } from 'i18next'; import type { PlayerState } from '../../store/playerStoreTypes'; import { usePreviewStore } from '../../store/previewStore'; import PlaybackScheduleBadge from '../PlaybackScheduleBadge'; import { usePlaybackDelayPress } from '../../hooks/usePlaybackDelayPress'; import { usePlaybackScheduleRemaining } from '../../utils/format/playbackScheduleFormat'; type RepeatMode = PlayerState['repeatMode']; type PlayPauseBind = ReturnType['playPauseBind']; type ScheduleRemaining = ReturnType; interface Props { isPlaying: boolean; isRadio: boolean; isPreviewing: boolean; stop: () => void; previous: () => void; next: () => void; toggleRepeat: () => void; repeatMode: RepeatMode; playPauseBind: PlayPauseBind; scheduleRemaining: ScheduleRemaining; transportAnchorRef: React.RefObject; playSlotRef: React.RefObject; t: TFunction; } export function PlayerTransportControls({ isPlaying, isRadio, isPreviewing, stop, previous, next, toggleRepeat, repeatMode, playPauseBind, scheduleRemaining, transportAnchorRef, playSlotRef, t, }: Props) { return (
{isPreviewing && ( )}
); }