mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-21 15:36:50 -05:00
15 lines
325 B
TypeScript
15 lines
325 B
TypeScript
import type { CSSProperties, ReactNode } from 'react';
|
|
|
|
import { View } from './View';
|
|
|
|
type FormErrorProps = {
|
|
style?: CSSProperties;
|
|
children?: ReactNode;
|
|
};
|
|
|
|
export function FormError({ style, children }: FormErrorProps) {
|
|
return (
|
|
<View style={{ color: 'red', fontSize: 13, ...style }}>{children}</View>
|
|
);
|
|
}
|