mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
- create a context for entity identifiers, massively simplifying UI for each entity int he list - consolidate common redux actions - remove now-unused code
27 lines
937 B
TypeScript
27 lines
937 B
TypeScript
import { Spacer } from '@invoke-ai/ui-library';
|
|
import { CanvasEntityEnabledToggle } from 'features/controlLayers/components/common/CanvasEntityEnabledToggle';
|
|
import { CanvasEntityHeader } from 'features/controlLayers/components/common/CanvasEntityHeader';
|
|
import { CanvasEntityTitle } from 'features/controlLayers/components/common/CanvasEntityTitle';
|
|
import { IMActionsMenu } from 'features/controlLayers/components/InpaintMask/IMActionsMenu';
|
|
import { memo } from 'react';
|
|
|
|
import { IMMaskFillColorPicker } from './IMMaskFillColorPicker';
|
|
|
|
type Props = {
|
|
onToggleVisibility: () => void;
|
|
};
|
|
|
|
export const IMHeader = memo(({ onToggleVisibility }: Props) => {
|
|
return (
|
|
<CanvasEntityHeader onToggle={onToggleVisibility}>
|
|
<CanvasEntityEnabledToggle />
|
|
<CanvasEntityTitle />
|
|
<Spacer />
|
|
<IMMaskFillColorPicker />
|
|
<IMActionsMenu />
|
|
</CanvasEntityHeader>
|
|
);
|
|
});
|
|
|
|
IMHeader.displayName = 'IMHeader';
|