import { useRosettaColors } from "@/app/hooks/useRosettaColors"; import { Flex, Paper, Text, useMantineTheme } from "@mantine/core"; import { IconAlertTriangleFilled } from "@tabler/icons-react"; interface SettingsAlertProps { text: string; type? : 'info' | 'warning' | 'error'; } export function SettingsAlert(props : SettingsAlertProps) { const theme = useMantineTheme(); const type = props.type || 'warning'; const colors = useRosettaColors(); return ( {type == 'warning' && <> } {type == 'error' && <> } {type == 'info' && <> } {props.text} ); }