"use client";

import React from "react";

interface ContactCenterProps {
  title: string;
  description: string;
  tag?: string;
}

export const ContactCenter: React.FC<ContactCenterProps> = ({
  title,
  description,
  tag,
}) => {
  const handleSubmit = (e: React.FormEvent) => {
    e.preventDefault();
    console.log("Form submitted");
  };

  return (
    <form onSubmit={handleSubmit} className="contact-center">
      {tag && <span className="text-sm">{tag}</span>}
      <h2 className="text-2xl font-bold">{title}</h2>
      <p className="text-base">{description}</p>
    </form>
  );
};

export default ContactCenter;
