fix: add 'use client' directive to MediaLibrary and MediaUploader components

These components use useState/useRef hooks but lacked the Next.js 'use client'
directive, causing the Next.js app build to fail with Server Component errors.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
jordan 2026-02-20 00:32:24 -07:00
parent 592b2d5ec0
commit bc77504b35
2 changed files with 4 additions and 0 deletions

View File

@ -1,3 +1,5 @@
'use client';
import { useState } from 'react'; import { useState } from 'react';
import { Trash2, Image, Video, ExternalLink } from 'lucide-react'; import { Trash2, Image, Video, ExternalLink } from 'lucide-react';

View File

@ -1,3 +1,5 @@
'use client';
import { useCallback, useState, useRef } from 'react'; import { useCallback, useState, useRef } from 'react';
import { Upload, Loader2, Check } from 'lucide-react'; import { Upload, Loader2, Check } from 'lucide-react';