This repository has been archived on 2025-12-21. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
2025-06-26 13:09:12 -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>
);
}