'use client'; export function AuthenticityToken() { const token = useCsrfToken(); return ; } function useCsrfToken() { if (typeof window === 'undefined') return ''; return ( document .querySelector('meta[name="csrf-token"]') ?.getAttribute('content') ?? '' ); }