This commit is contained in:
Rami Bitar
2026-05-02 09:49:25 -04:00
parent 2eb31caebb
commit e17fefe025

View File

@@ -1,3 +1,5 @@
"use client";
import React, { useState, useCallback, useContext, createContext } from 'react';
import { createPortal } from 'react-dom';
import { motion, AnimatePresence } from 'framer-motion';
@@ -84,6 +86,7 @@ function SheetTrigger(
}
function SheetPortal({ children }: { children: React.ReactNode }) {
if (typeof document === 'undefined') return null;
return createPortal(children, document.body);
}