SecureNotes/src/components/AddButton.tsx
2019-06-18 22:55:04 +02:00

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>
}