onSelected() : undefined}
>
{isPlayable ? (
) : undefined}
{episode.description}
);
}
const variants = {
enter: (activeTab: SelectorPanel) => {
return {
x: activeTab === 'episodes' ? 608 : -608,
opacity: 0,
};
},
center: {
x: 0,
opacity: 1,
},
exit: (direction: SelectorPanel) => {
return {
zIndex: 0,
x: direction === 'seasons' ? 608 : -608,
opacity: 0,
};
},
};
interface AnimatedPanelProps {
name: SelectorPanel;
children: ReactNode;
}
function AnimatedPanel({name, children}: AnimatedPanelProps) {
return (