Buckets:
| 'use client' | |
| import { useRouter } from 'next/navigation' | |
| export default function ToggleButton() { | |
| const router = useRouter() | |
| return ( | |
| <button | |
| onClick={() => | |
| fetch('/draftmode/async/toggle').then(() => router.refresh()) | |
| } | |
| > | |
| Toggle Draft Mode | |
| </button> | |
| ) | |
| } | |
Xet Storage Details
- Size:
- 302 Bytes
- Xet hash:
- d5918fd74c985974714d86cd36cb5627d8831b3da9786e8dc87c0a6d8c96f8a4
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.