Files
Homarr/src/components/Dashboard/Modals/SelectElement/Components/StaticElementsTab/AvailableStaticElementsTab.tsx

33 lines
1.1 KiB
TypeScript
Raw Normal View History

import { Grid, Text } from '@mantine/core';
2022-12-04 21:19:40 +01:00
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&apos;t integrate with any apps and their content never changes.
2022-12-04 21:19:40 +01:00
</Text>
<Grid>
2022-12-04 21:19:40 +01:00
<GenericAvailableElementType
name="Static Text"
description="Display a fixed string on your dashboard"
2022-12-18 23:22:45 +01:00
image={IconCursorText}
handleAddition={/* TODO: add something? */ async () => {}}
2022-12-04 21:19:40 +01:00
/>
</Grid>
2022-12-04 21:19:40 +01:00
</>
);
};