HoshiAI-app/components/ui/error-text.tsx
2026-01-02 15:58:21 +01:00

17 lines
413 B
TypeScript

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