package p.studio.workspaces.editor;

import javafx.geometry.Insets;
import javafx.scene.control.Label;
import javafx.scene.layout.BorderPane;
import javafx.scene.layout.VBox;
import p.studio.Container;
import p.studio.utilities.i18n.I18n;

public final class EditorOutlinePanel extends BorderPane {

    public EditorOutlinePanel() {
        getStyleClass().addAll("editor-workspace-panel", "editor-workspace-outline-panel");
        setPadding(new Insets(14, 16, 14, 16));

        final var title = new Label();
        title.textProperty().bind(Container.i18n().bind(I18n.CODE_EDITOR_OUTLINE_TITLE));
        title.getStyleClass().add("editor-workspace-panel-title");

        final var placeholder = new Label();
        placeholder.textProperty().bind(Container.i18n().bind(I18n.CODE_EDITOR_OUTLINE_PLACEHOLDER));
        placeholder.getStyleClass().add("editor-workspace-placeholder");
        placeholder.setWrapText(true);

        final var content = new VBox(8, title, placeholder);
        content.getStyleClass().add("editor-workspace-panel-content");
        setCenter(content);
    }
}
