mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-04-19 21:46:43 -04:00
Convert Form Components to TypeScript
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user