外部の Gallery は useState を使っているのに use client が書かれていません。この包み方でビルドは通りますか。
components/Gallery.tsx
Browserで実行
'use client' Browserで実行
export { Gallery } from '@/lib/vendor''use client' export { Gallery } from '@/lib/vendor'