mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-04-17 21:26:13 -04:00
24 lines
594 B
TypeScript
24 lines
594 B
TypeScript
import classNames from 'classnames';
|
|
import React, { ReactNode } from 'react';
|
|
import styles from './EnhancedSelectInputSelectedValue.css';
|
|
|
|
interface EnhancedSelectInputSelectedValueProps {
|
|
className?: string;
|
|
children: ReactNode;
|
|
isDisabled?: boolean;
|
|
}
|
|
|
|
function EnhancedSelectInputSelectedValue({
|
|
className = styles.selectedValue,
|
|
children,
|
|
isDisabled = false,
|
|
}: EnhancedSelectInputSelectedValueProps) {
|
|
return (
|
|
<div className={classNames(className, isDisabled && styles.isDisabled)}>
|
|
{children}
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default EnhancedSelectInputSelectedValue;
|