<script lang="ts">
	import FaPlus from '$icon/fa-plus.svelte';
	import { notes } from '$lib/stores';
</script>

<button
	type="button"
	aria-label="Add note"
	data-tooltip="Add note"
	data-placement="left"
	on:click={() => notes.add(undefined, true)}
>
	<FaPlus />
</button>

<style lang="scss">
	button {
		position: fixed;
		bottom: 1rem;
		right: 1rem;
		width: 4rem;
		height: 4rem;
		margin: 0;
		border-radius: 50%;
		box-shadow: var(--card-shadow);

		& > :global(svg) {
			width: 2rem;
		}
	}
</style>
