mirror of
https://github.com/ershisan99/DevToysWeb.git
synced 2025-12-16 12:32:48 +00:00
15 lines
422 B
TypeScript
15 lines
422 B
TypeScript
import { memo } from "react";
|
|
import equal from "react-fast-compare";
|
|
|
|
import { icons } from "@/components/icons";
|
|
|
|
import { Base, BaseProps } from "./base";
|
|
|
|
export type ClearProps = Omit<BaseProps, "icon" | "labelText">;
|
|
|
|
function RawClear({ iconOnly, ...props }: ClearProps) {
|
|
return <Base {...props} icon={<icons.X size={16} />} {...{ iconOnly }} labelText="Clear" />;
|
|
}
|
|
|
|
export const Clear = memo(RawClear, equal);
|