mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-04-01 07:14:58 -05:00
27 lines
570 B
TypeScript
27 lines
570 B
TypeScript
import { SendouFieldError } from "~/components/elements/FieldError";
|
|
import { SendouFieldMessage } from "~/components/elements/FieldMessage";
|
|
|
|
// TODO: deprecate in favor of FormMessage
|
|
export function SendouBottomTexts({
|
|
bottomText,
|
|
errorText,
|
|
errorId,
|
|
}: {
|
|
bottomText?: string;
|
|
errorText?: string;
|
|
errorId?: string;
|
|
}) {
|
|
return (
|
|
<>
|
|
{errorText ? (
|
|
<SendouFieldError id={errorId}>{errorText}</SendouFieldError>
|
|
) : (
|
|
<SendouFieldError />
|
|
)}
|
|
{bottomText ? (
|
|
<SendouFieldMessage>{bottomText}</SendouFieldMessage>
|
|
) : null}
|
|
</>
|
|
);
|
|
}
|