Files
ontime/apps/client/src/views/cuesheet/cuesheet-table/cuesheet-table-elements/TextLikeInput.tsx
T
2024-12-20 21:15:26 +01:00

22 lines
622 B
TypeScript

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>
);
}