All checks were successful
Build & Deploy / 🔍 Prepare (push) Successful in 1m13s
Build & Deploy / 🧪 QA (push) Successful in 1m44s
Build & Deploy / 🏗️ Build (push) Successful in 3m14s
Build & Deploy / 🚀 Deploy (push) Successful in 34s
Build & Deploy / 🧪 Post-Deploy Verification (push) Has been skipped
Build & Deploy / 🔔 Notify (push) Successful in 3s
19 lines
430 B
TypeScript
19 lines
430 B
TypeScript
'use client';
|
|
|
|
import dynamic from 'next/dynamic';
|
|
|
|
const IS_ENABLED = process.env.NEXT_PUBLIC_FEEDBACK_ENABLED === 'true';
|
|
|
|
const FeedbackOverlay = IS_ENABLED
|
|
? dynamic(
|
|
() => import('@mintel/next-feedback/FeedbackOverlay').then((mod) => mod.FeedbackOverlay),
|
|
{ ssr: false },
|
|
)
|
|
: () => null;
|
|
|
|
export default function FeedbackClientWrapper() {
|
|
if (!IS_ENABLED) return null;
|
|
|
|
return <FeedbackOverlay />;
|
|
}
|