feat(view): add contextual layer controls

This commit is contained in:
syntaxbullet
2026-07-03 16:04:43 +02:00
parent b0732c8af1
commit 46aa1b8595
9 changed files with 243 additions and 60 deletions

View File

@@ -0,0 +1,24 @@
import { Hand } from "@phosphor-icons/react";
import { BottomControlDivider } from "./Divider";
import { bottomControlIconSlotClass, bottomControlLabelClass, bottomControlValueClass } from "./styles";
export type PanControlsProps = {
x: number;
y: number;
};
export function PanControls({ x, y }: PanControlsProps) {
return (
<div className="flex w-full items-center justify-center gap-2 tabular-nums">
<span className={bottomControlIconSlotClass()}>
<Hand size={16} weight="regular" />
</span>
<BottomControlDivider />
<span className={bottomControlLabelClass()}>X</span>
<span className={bottomControlValueClass()}>{x}</span>
<BottomControlDivider />
<span className={bottomControlLabelClass()}>Y</span>
<span className={bottomControlValueClass()}>{y}</span>
</div>
);
}