mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-03-21 18:04:39 -05:00
* From scrims * wip * wip * wip * wip * WIP * wip * wip * wip * wip * wip * import ordering
24 lines
499 B
TypeScript
24 lines
499 B
TypeScript
import { SendouFieldError } from "~/components/elements/FieldError";
|
|
import { SendouFieldMessage } from "~/components/elements/FieldMessage";
|
|
|
|
export function SendouBottomTexts({
|
|
bottomText,
|
|
errorText,
|
|
}: {
|
|
bottomText?: string;
|
|
errorText?: string;
|
|
}) {
|
|
return (
|
|
<>
|
|
{errorText ? (
|
|
<SendouFieldError>{errorText}</SendouFieldError>
|
|
) : (
|
|
<SendouFieldError />
|
|
)}
|
|
{bottomText && !errorText ? (
|
|
<SendouFieldMessage>{bottomText}</SendouFieldMessage>
|
|
) : null}
|
|
</>
|
|
);
|
|
}
|