feat(ui): support window header actions and disclosure collapse icon
This commit is contained in:
@@ -27,6 +27,7 @@ export interface FeatureSettingsWindowProps<T extends string = string> {
|
||||
onClose: () => void;
|
||||
children: ReactNode;
|
||||
footer?: ReactNode;
|
||||
headerActions?: ReactNode;
|
||||
}
|
||||
|
||||
export function FeatureSettingsWindow<T extends string>({
|
||||
@@ -40,6 +41,7 @@ export function FeatureSettingsWindow<T extends string>({
|
||||
onClose,
|
||||
children,
|
||||
footer,
|
||||
headerActions,
|
||||
}: FeatureSettingsWindowProps<T>) {
|
||||
return (
|
||||
<Window
|
||||
@@ -49,6 +51,7 @@ export function FeatureSettingsWindow<T extends string>({
|
||||
size="lg"
|
||||
className="nodedc-feature-settings-window"
|
||||
footer={footer}
|
||||
headerActions={headerActions}
|
||||
closeOnBackdrop={false}
|
||||
onClose={onClose}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user