import React from "react"; import { cn } from "@/lib/utils"; interface AlignSelectorProps { value: "left" | "center" | "right"; onChange: (value: "left" | "center" | "right") => void; } const AlignSelector: React.FC = ({ value, onChange }) => { const layouts = [ { value: "left", icon: ( ), tooltip: "左对齐", }, { value: "center", icon: ( ), tooltip: "居中", }, { value: "right", icon: ( ), tooltip: "右对齐", }, ]; return (
{layouts.map((layout) => ( ))}
); }; export default AlignSelector;