first commit
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
const ErrorMessage = ({
|
||||
error,
|
||||
"data-testid": dataTestid,
|
||||
}: {
|
||||
error?: string | null
|
||||
"data-testid"?: string
|
||||
}) => {
|
||||
if (!error) {
|
||||
return null
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="pt-1.5 text-destructive text-xs font-medium" data-testid={dataTestid}>
|
||||
<span>{error}</span>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default ErrorMessage
|
||||
Reference in New Issue
Block a user