refactor: show delayed times

This commit is contained in:
Carlos Valente
2024-12-22 19:57:43 +01:00
committed by Carlos Valente
parent bdd2a62cee
commit 7f39d035fd
6 changed files with 37 additions and 35 deletions
@@ -7,12 +7,13 @@ import style from './TextLikeInput.module.scss';
export default memo(TextLikeInput);
interface TextLikeInputProps extends HTMLAttributes<HTMLSpanElement> {
delayed?: boolean;
muted?: boolean;
}
function TextLikeInput(props: PropsWithChildren<TextLikeInputProps>) {
const { muted, children, className, ...elementProps } = props;
const classes = cx([style.textInput, muted && style.muted, className]);
const { delayed, muted, children, className, ...elementProps } = props;
const classes = cx([style.textInput, delayed && style.delayed, muted && style.muted, className]);
return (
<div className={classes} {...elementProps} tabIndex={0}>
{children}