12 lines
371 B
TypeScript
Executable File
12 lines
371 B
TypeScript
Executable File
import { h } from "preact";
|
|
import "./add_button.scss";
|
|
import Plus from "feather-icons/dist/icons/plus.svg";
|
|
export default function AddButton({ onClick }: { onClick: () => void }) {
|
|
return <button
|
|
title="add button"
|
|
class="fab btn-primary"
|
|
onClick={() => onClick()}
|
|
>
|
|
<Plus width={undefined} height={undefined} />
|
|
</button>
|
|
} |