Files
fps-time-app/src/app/components/SyncButton.tsx
T
2025-06-26 15:31:08 -04:00

20 lines
360 B
TypeScript

"use client";
import React from 'react';
export default function SyncButton() {
const handleSync = async () => {
const res = await fetch('/api/sync');
const json = await res.json();
alert(json.message);
};
return (
<button
onClick={handleSync}
className="mb-4 px-4 py-2 border rounded"
>
Sync
</button>
);
}