5180 fichiers 38.5 Mo 0 téléchargements 571 vues mis à jour il y a 8 heures ui
nitro-v36-with-renderer-v36 / src / components / room / widgets / furniture / playlist-editor / FurniturePlaylistEditorWidgetView.tsx
FurniturePlaylistEditorWidgetView.tsx 2.2 Ko Télécharger le fichier
import { FC } from 'react';
import { LocalizeText } from '../../../../../api';
import { OctaneCardContentView, OctaneCardHeaderView, OctaneCardView } from '../../../../../common';
import { useFurniturePlaylistEditorWidget } from '../../../../../hooks';
import { DiskInventoryView } from './DiskInventoryView';
import { SongPlaylistView } from './SongPlaylistView';
import '../../../../../css/room/FurniWindowsCAir.css';
import { NativeTextTree } from '../../../../../common/native-text/NativeTextTree';

export const FurniturePlaylistEditorWidgetView: FC<{}> = (props) => {
    const {
        objectId = -1,
        currentPlayingIndex = -1,
        playlist = null,
        diskInventory = null,
        onClose = null,
        togglePlayPause = null,
        removeFromPlaylist = null,
        addToPlaylist = null
    } = useFurniturePlaylistEditorWidget();

    if (objectId === -1) return null;

    return (
        <NativeTextTree>
            <OctaneCardView className="octane-playlist-editor-widget" theme="primary-slim">
                <OctaneCardHeaderView headerText={LocalizeText('playlist.editor.title')} onCloseClick={onClose} />
                <OctaneCardContentView>
                    <div className="playlist-editor-layout flex flex-row gap-1 h-full min-h-0">
                        <div className="playlist-editor-pane relative overflow-hidden h-full rounded flex flex-col min-w-0">
                            <DiskInventoryView addToPlaylist={addToPlaylist} diskInventory={diskInventory} />
                        </div>
                        <div className="playlist-editor-pane relative overflow-hidden h-full rounded flex flex-col min-w-0">
                            <SongPlaylistView
                                currentPlayingIndex={currentPlayingIndex}
                                furniId={objectId}
                                playlist={playlist}
                                removeFromPlaylist={removeFromPlaylist}
                                togglePlayPause={togglePlayPause}
                            />
                        </div>
                    </div>
                </OctaneCardContentView>
            </OctaneCardView>
        </NativeTextTree>
    );
};
15Sujets
1Dépôts
20Membres
4En ligne
Profile
Inscrit
Dernière visite
Messages
0
Votes positifs
0
Votes négatifs
0

Nous utilisons des cookies pour assurer le bon fonctionnement du site et améliorer votre expérience. en savoir plus

Autoriser