Something went wrong. Try again.
[mirror] A local-first desktop markdown writer with grammar checking, at proto integration, and more github.com/stormlightlabs/writer/releases
Something went wrong. Try again.
573 B · 22 lines
TSX
at main
1234567891011121314151617181920212223import { Button } from "$components/Button";import { IconProps } from "$icons";import type { ComponentType } from "react";
export const AddButton = ( { onClick, icon: Icon, title, disabled = false }: { onClick: () => void; icon: ComponentType<IconProps>; title: string; disabled?: boolean; },) => ( <Button variant="iconGhost" size="iconMd" onClick={onClick} disabled={disabled} className="transition-colors duration-150 hover:bg-layer-hover-01 hover:text-icon-primary" title={title}> <Icon size="md" /> </Button>);