- added add and remove regions on paint selector

This commit is contained in:
2025-11-25 20:49:11 +00:00
parent 2aa0b4377f
commit 225a2a6168
3 changed files with 33 additions and 0 deletions

View File

@@ -15,6 +15,8 @@ type CameraSettingsProps = {
setTabIndex: (tabIndex: number) => void;
tabIndex: number;
paintedCells: RefObject<Map<string, PaintedCell>>;
onAddRegion: () => void;
OnRemoveRegion: () => void;
};
const CameraSettings = ({
@@ -27,6 +29,8 @@ const CameraSettings = ({
tabIndex,
setTabIndex,
paintedCells,
onAddRegion,
OnRemoveRegion,
}: CameraSettingsProps) => {
return (
<Card className="p-4 col-span-3 row-span-5 col-start-3 md:col-span-3 md:row-span-5 max-h-screen overflow-auto">
@@ -50,6 +54,8 @@ const CameraSettings = ({
mode={mode}
onSelectMode={onSelectMode}
paintedCells={paintedCells}
onAddRegion={onAddRegion}
OnRemoveRegion={OnRemoveRegion}
/>
</TabPanel>
<TabPanel>