# extendify/3.0.5/src/Assist/components/dashboard/buttons/EventButton.jsx

Extendify, version 3.0.5. 19 lines.

- Page: https://pluginprobe.com/plugins/extendify/3.0.5/code/src/Assist/components/dashboard/buttons/EventButton.jsx
- Raw: https://pluginprobe.com/plugins/extendify/3.0.5/raw/src/Assist/components/dashboard/buttons/EventButton.jsx
- Modified: 2026-02-18T22:27:14+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/extendify/3.0.5/code/src/Assist/components/dashboard/buttons/EventButton.jsx#L10-L20`.

```jsx
import { useTasksStore } from '@assist/state/tasks';

export const EventButton = ({ task, completed }) => {
	const { completeTask } = useTasksStore();

	return (
		<button
			type="button"
			className="min-w-24 rounded-xs bg-design-main px-4 py-2.5 text-sm font-medium text-design-text hover:opacity-90"
			onClick={() => {
				window.dispatchEvent(task.event);
				completeTask(task.slug);
			}}
		>
			{completed ? task.buttonLabels.completed : task.buttonLabels.notCompleted}
		</button>
	);
};

```
