feat: edit duration in cuesheet

This commit is contained in:
Carlos Valente
2024-12-20 12:44:56 +01:00
committed by Carlos Valente
parent c445c42f8a
commit 88b114020b
8 changed files with 216 additions and 45 deletions
@@ -0,0 +1,21 @@
import { HTMLAttributes, memo, PropsWithChildren } from 'react';
import { cx } from '../../../../common/utils/styleUtils';
import style from './TextLikeInput.module.scss';
export default memo(TextLikeInput);
interface TextLikeInputProps extends HTMLAttributes<HTMLSpanElement> {
muted?: boolean;
}
function TextLikeInput(props: PropsWithChildren<TextLikeInputProps>) {
const { muted, children, className, ...elementProps } = props;
const classes = cx([style.textInput, muted && style.muted, className]);
return (
<div className={classes} {...elementProps} tabIndex={0}>
{children}
</div>
);
}