/**
* Internal dependencies
*/
import type { RadioControlOptionLayout } from './types';
const OptionLayout = ( {
label,
secondaryLabel,
description,
secondaryDescription,
id,
}: RadioControlOptionLayout ): JSX.Element => {
return (
{ label && (
{ label }
) }
{ secondaryLabel && (
{ secondaryLabel }
) }
{ ( description || secondaryDescription ) && (
{ description && (
{ description }
) }
{ secondaryDescription && (
{ secondaryDescription }
) }
) }
);
};
export default OptionLayout;