Persist catalog layout and add inspector toolbar
This commit is contained in:
@@ -49,6 +49,8 @@ export interface ApplicationPanelProps extends Omit<HTMLAttributes<HTMLElement>,
|
||||
expandLabel?: string;
|
||||
closeLabel?: string;
|
||||
onExpandedChange?: (expanded: boolean) => void;
|
||||
/** Persistent custom controls rendered before utility icon actions. */
|
||||
headerTools?: ReactNode;
|
||||
/** Persistent utility actions rendered before expand/close in the panel header. */
|
||||
utilityActions?: ApplicationPanelUtilityAction[];
|
||||
onClose: () => void;
|
||||
@@ -70,6 +72,7 @@ export function ApplicationPanel({
|
||||
expandLabel = "Развернуть окно",
|
||||
closeLabel = "Закрыть окно",
|
||||
onExpandedChange,
|
||||
headerTools,
|
||||
utilityActions = [],
|
||||
onClose,
|
||||
children,
|
||||
@@ -85,6 +88,7 @@ export function ApplicationPanel({
|
||||
{description ? <p>{description}</p> : null}
|
||||
</div>
|
||||
<div className="nodedc-application-panel__actions">
|
||||
{headerTools ? <div className="nodedc-application-panel__tools">{headerTools}</div> : null}
|
||||
{utilityActions.map((action) => (
|
||||
<button
|
||||
key={action.label}
|
||||
|
||||
Reference in New Issue
Block a user