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