Buckets:
silverwolf-x/project / examples /cms-wordpress /src /components /Globals /PreviewNotice /PreviewNotice.tsx
| "use client"; | |
| import styles from "./PreviewNotice.module.css"; | |
| import { usePathname } from "next/navigation"; | |
| export const PreviewNotice = () => { | |
| const pathname = usePathname(); | |
| return ( | |
| <aside className={styles.preview}> | |
| Preview mode enabled | |
| <a | |
| className={styles.link} | |
| href={`/api/exit-preview?path=${encodeURIComponent(pathname)}`} | |
| > | |
| Exit | |
| </a> | |
| </aside> | |
| ); | |
| }; | |
Xet Storage Details
- Size:
- 426 Bytes
- Xet hash:
- 64d74e316b354673315708f6c3c954798479f2d453e683615ef0a54f724359a0
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.