"use client"; import { motion, AnimatePresence } from "framer-motion"; interface ToastProps { message: string; position?: "top" | "bottom"; } const positionClass = { top: "top-10", bottom: "bottom-8", }; export default function Toast({ message, position = "top" }: ToastProps) { const isTop = position === "top"; const y = isTop ? -12 : 12; return ( {message && ( {message} )} ); }