import * as React from 'react';
interface Props {
children: string;
}
interface DescriptionTextProps {
children: string;
limit?: number;
}
export const TitleText = ({ children }: Props) => (
{children}
);
export const MutedText = ({ children }: Props) => (
{children}
);
export const UppercaseText = ({ children }: Props) => (
{children}
);
export const SuccessText = ({ children }: Props) => (
{children}
);
export const DangerText = ({ children }: Props) => (
{children}
);
export const DescriptionText = ({ children, limit = 90}: DescriptionTextProps) => (
{
children && children.length > limit ?
children.slice(0, limit-1) + '...'
:
children || ''
}
);