mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
14 lines
356 B
TypeScript
14 lines
356 B
TypeScript
import { Box, chakra } from '@chakra-ui/react';
|
|
import React from 'react';
|
|
|
|
interface Props {
|
|
message: string;
|
|
className?: string;
|
|
}
|
|
|
|
const FieldError = ({ message, className }: Props) => {
|
|
return <Box className={ className } color="text.error" textStyle="sm" mt={ 2 } wordBreak="break-word">{ message }</Box>;
|
|
};
|
|
|
|
export default chakra(FieldError);
|