import { Stack } from "@phosphor-icons/react";
import type { SelectionSummary } from "../selectionSummary";
import { BottomControlDivider } from "./Divider";
import { bottomControlButtonClass } from "./styles";
export type SelectionControlsProps = {
selection: SelectionSummary;
onOpenLayers: () => void;
};
export function SelectionControls({ selection, onOpenLayers }: SelectionControlsProps) {
const label = selectionLabel(selection);
return (
<>
{label}
>
);
}
function selectionLabel(selection: SelectionSummary) {
switch (selection.type) {
case "artboard":
return `${selection.name} ยท ${selection.layerCount} layers`;
case "layer":
return selection.name;
case "multi-layer":
return `${selection.count} layers selected`;
case "none":
return "";
}
}