"use client";
import React, { useState } from "react";
export default function SocialFloat() {
const [open, setOpen] = useState(false);
/** Social icons */
const socialIcons = [
{
href: "https://www.facebook.com/ELRaphaRehabCenter/",
iconClass: "icon-4", // Facebook
label: "Facebook",
offset: -40,
},
{
href: "https://www.instagram.com/elrapharehab/",
iconClass: "icon-7", // Instagram
label: "Instagram",
offset: 40,
},
];
return (
{/* Extra social icons */}
{open && (
{socialIcons.map((icon, i) => (
))}
)}
{/* Main floating button */}
);
}