import { useThemeColor } from "@/hooks/use-theme-color";
import { ReactNode } from "react";
import { ThemedText } from "./themed-text";

interface ErrorTextProps {
  children?: ReactNode
}

const ErrorText = ({ children }: ErrorTextProps) => {
  const color = useThemeColor({ }, 'errorText');

  return (
    <ThemedText lightColor={color} darkColor={color}>{children}</ThemedText>
  )
}

export default ErrorText