import React, { useState } from 'react'; import { usePopup } from '../../utils/hooks/'; import { CircleIconButton, MaterialIcon, NavigationContentApp, PopupMain } from '../_shared/'; import { PlaylistsSelection } from '../playlists-selection/PlaylistsSelection'; import { translateString } from '../../utils/helpers/'; function mediaSavePopupPages(onTriggerPopupClose) { return { selectPlaylist: (
), createPlaylist: (
), }; } export function MediaSaveButton(props) { const [popupContentRef, PopupContent, PopupTrigger] = usePopup(); const [popupCurrentPage, setPopupCurrentPage] = useState('selectPlaylist'); function triggerPopupClose() { popupContentRef.current.toggle(); } return (
); }