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

<button
	type="button"
	aria-label="Search note"
	data-tooltip="Search note"
	data-placement="left"
	on:click={() => notes.search()}
>
	<FaPlus />
</button>

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

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