Files
sendou.ink/app/components/elements/BottomTexts.tsx
2026-08-21 22:02:47 +03:00

26 lines
509 B
TypeScript

import { SendouFieldError, SendouFieldMessage } from "~/components/FormMessage";
// 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}
</>
);
}