import React, { FC } from "react";
import { Text } from "react-native";
import { useThemeColors } from "@/lib/theme";
type props = {
    infogram: string;
    fontSize?: number;
}
export const InfogramText: FC<props> = ({infogram, fontSize = 20}) => {
  const { fixed } = useThemeColors();
  return (
    <Text
      style={{
        fontSize,
        color: fixed.textOnPrimary,
        fontFamily: "JNR-font",
      }}
    >
      {infogram} 
    </Text>
  );
};
