import React, { PropsWithChildren } from "react"; import classNames from "classnames"; export type FieldState = "success" | "error" | "default"; export type FieldProps = { state?: FieldState | undefined; text?: string | undefined; rightText?: string | undefined; fullWidth?: boolean | undefined; compact?: boolean | undefined; className?: string | undefined; }; type Props = FieldProps & PropsWithChildren; export const Field = ({ children, state = "default", text, rightText, fullWidth, compact, className, }: Props) => { return (