mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-18 09:35:20 +02:00
17 lines
286 B
TypeScript
17 lines
286 B
TypeScript
|
import * as React from 'react';
|
||
|
|
||
|
interface Props {
|
||
|
htmlFor: string|null;
|
||
|
text: string;
|
||
|
}
|
||
|
|
||
|
const SettingLabel: React.FC<Props> = props => {
|
||
|
return (
|
||
|
<div className='setting-label'>
|
||
|
<label htmlFor={props.htmlFor}>{props.text}</label>
|
||
|
</div>
|
||
|
);
|
||
|
};
|
||
|
|
||
|
export default SettingLabel;
|