260728_02_ENH: 에디터 툴바 동적 슬롯 사용할 수 있도록 변경
This commit is contained in:
@@ -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();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user