"use client";

import { ReactNode } from "react";
import { useTextSize } from "@/lib/contexts/TextSizeContext";

interface TextSizeWrapperProps {
  children: ReactNode;
}

export default function TextSizeWrapper({ children }: TextSizeWrapperProps) {
  const { textSize } = useTextSize();

  return (
    <div data-text-size={textSize} className="text-size-wrapper">
      {children}
    </div>
  );
}
