260728_02_ENH: 에디터 툴바 동적 슬롯 사용할 수 있도록 변경

This commit is contained in:
2026-07-28 15:12:22 +09:00
parent d3f94a05b3
commit 59dd2b60c9
6 changed files with 73 additions and 59 deletions

View File

@@ -4,7 +4,7 @@ import type { ReactNode, MouseEvent } from "react";
import { Button } from "@/components/ui/button";
import { cn } from "@/lib/utils";
type Props = {
export type KriEditorToolbarButtonProps = {
active?: boolean;
disabled?: boolean;
title?: string;
@@ -13,7 +13,7 @@ type Props = {
className?: string;
};
export function ToolbarButton({ active, disabled, title, onClick, children, className }: Props) {
export function ToolbarButton({ active, disabled, title, onClick, children, className }: KriEditorToolbarButtonProps) {
const onMouseDown = (e: MouseEvent) => {
e.preventDefault();
};