15 lines
373 B
TypeScript
15 lines
373 B
TypeScript
import React, { ReactNode } from 'react';
|
|
|
|
type Props = {
|
|
title: string
|
|
description: ReactNode
|
|
htmlFor: string
|
|
}
|
|
|
|
export default ({ title, description, htmlFor }: Props) => (
|
|
<div className="mailpoet-settings-label">
|
|
<label className="mailpoet-settings-label-title" htmlFor={htmlFor}>{title}</label>
|
|
<p className="description">{description}</p>
|
|
</div>
|
|
);
|