Update 'use client' in places

This commit is contained in:
Richard Roberson 2025-02-04 22:28:38 -07:00
parent 96e499cc58
commit 8531d4a68a
9 changed files with 18 additions and 2 deletions

View file

@ -44,8 +44,8 @@ export const metadata: Metadata = {
},
};
//const isDev = process.env.NEXT_PUBLIC_NODE_ENV !== 'production' || process.env.NODE_ENV == null;
const isDev = false;
const isDev = process.env.NEXT_PUBLIC_NODE_ENV !== 'production' || process.env.NODE_ENV == null;
//const isDev = false;
export default function RootLayout({
children,

View file

@ -1,3 +1,5 @@
'use client';
import { Button } from '@headlessui/react';
export const Navigator = ({ currentPage, numPages, skipToPage }: {

View file

@ -1,3 +1,5 @@
'use client';
import {
Listbox,
ListboxButton,

View file

@ -1,3 +1,5 @@
'use client';
import {
Listbox,
ListboxButton,

View file

@ -1,3 +1,5 @@
'use client';
import { useRef } from 'react';
import { LRUCache } from 'lru-cache';

View file

@ -1,3 +1,5 @@
'use client';
import { useState, useEffect } from 'react';
// Type definition for AudioContext to handle browser compatibility

View file

@ -1,3 +1,5 @@
'use client';
import { useEffect } from 'react';
interface MediaControls {

View file

@ -1,3 +1,5 @@
'use client';
import { useState, useCallback } from 'react';
const DEFAULT_VOICES = ['alloy', 'ash', 'coral', 'echo', 'fable', 'onyx', 'nova', 'sage', 'shimmer'];

View file

@ -1,3 +1,5 @@
'use client';
import { useState, useCallback, useEffect } from 'react';
import { v4 as uuidv4 } from 'uuid';
import { indexedDBService, type PDFDocument } from '@/utils/indexedDB';