mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-10 07:25:48 +01:00
33 lines
1.1 KiB
TypeScript
33 lines
1.1 KiB
TypeScript
import { Grid, Text } from '@mantine/core';
|
|
import { IconCursorText } from '@tabler/icons';
|
|
import { useTranslation } from 'next-i18next';
|
|
import { GenericAvailableElementType } from '../Shared/GenericElementType';
|
|
import { SelectorBackArrow } from '../Shared/SelectorBackArrow';
|
|
|
|
interface AvailableStaticTypesProps {
|
|
onClickBack: () => void;
|
|
}
|
|
|
|
export const AvailableStaticTypes = ({ onClickBack }: AvailableStaticTypesProps) => {
|
|
const { t } = useTranslation('layout/element-selector/selector');
|
|
return (
|
|
<>
|
|
<SelectorBackArrow onClickBack={onClickBack} />
|
|
|
|
<Text mb="md" color="dimmed">
|
|
Static elements provide you additional control over your dashboard. They are static, because
|
|
they don't integrate with any apps and their content never changes.
|
|
</Text>
|
|
|
|
<Grid>
|
|
<GenericAvailableElementType
|
|
name="Static Text"
|
|
description="Display a fixed string on your dashboard"
|
|
image={IconCursorText}
|
|
handleAddition={/* TODO: add something? */ async () => {}}
|
|
/>
|
|
</Grid>
|
|
</>
|
|
);
|
|
};
|