// src/shared/common/ui/text.tsx
import React from "react";

type TextProps = React.HTMLAttributes<HTMLSpanElement> & {
  fw?: number | string;
  color?: string;
  size?: string | number;
};

export const Text: React.FC<TextProps> = ({
  fw,
  color,
  size,
  style,
  children,
  ...props
}) => {
  return (
    <span
      style={{ fontWeight: fw, color, fontSize: size, ...style }}
      {...props}>
      {children}
    </span>
  );
};
