frontPanel/src/pages/IntegrationsPage/IntegrationsModal/SettingsBlock/SettingItem/SelectedParameter/SelectedParameter.tsx
2024-04-16 15:07:58 +04:00

28 lines
636 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { Typography, useTheme } from "@mui/material";
import Box from "@mui/material/Box";
import { FC } from "react";
type SelectedParameterProps = {
parameter: string | null;
};
export const SelectedParameter: FC<SelectedParameterProps> = ({
parameter,
}) => {
const theme = useTheme();
return (
<Box
sx={{
display: "flex",
width: "100%",
padding: "15px 20px",
backgroundColor: theme.palette.background.default,
borderRadius: "12px",
marginTop: "10px",
}}
>
<Typography>{parameter ? parameter : "Не выбрано"}</Typography>
</Box>
);
};