mirror of
https://github.com/vercel/flags.git
synced 2026-09-19 03:49:23 +08:00
21 lines
344 B
TypeScript
21 lines
344 B
TypeScript
'use client';
|
|
|
|
import { Button } from '@/components/ui/button';
|
|
import { useRouter } from 'next/navigation';
|
|
|
|
export function ReloadButton() {
|
|
const router = useRouter();
|
|
|
|
return (
|
|
<Button
|
|
type="button"
|
|
onClick={() => {
|
|
router.refresh();
|
|
}}
|
|
variant="outline"
|
|
>
|
|
Reload page
|
|
</Button>
|
|
);
|
|
}
|