mirror of
https://github.com/ershisan99/DevToysWeb.git
synced 2025-12-16 20:49:23 +00:00
10 lines
352 B
TypeScript
10 lines
352 B
TypeScript
import { icons } from "@/components/icons";
|
|
|
|
import { BaseButton, BaseButtonProps } from "./base";
|
|
|
|
export type ClearButtonProps = Omit<BaseButtonProps, "icon" | "labelText">;
|
|
|
|
export function ClearButton({ iconOnly, ...props }: ClearButtonProps) {
|
|
return <BaseButton {...props} icon={<icons.X size={16} />} {...{ iconOnly }} labelText="Clear" />;
|
|
}
|