Files
Homarr/src/components/layout/Tip.tsx

24 lines
423 B
TypeScript
Raw Normal View History

import { Text } from '@mantine/core';
2022-08-24 17:58:14 +02:00
import { useTranslation } from 'next-i18next';
interface TipProps {
children: React.ReactNode;
}
export default function Tip(props: TipProps) {
2022-08-24 17:58:14 +02:00
const { t } = useTranslation('common');
return (
<Text
style={{
fontSize: '0.75rem',
color: 'gray',
marginBottom: '0.5rem',
}}
>
2022-08-24 17:58:14 +02:00
{t('tip')}
{props.children}
</Text>
);
}