A local-first personal finance app
import { Trans } from 'react-i18next';
import { Button } from '@actual-app/components/button';
import { SvgAlertTriangle } from '@actual-app/components/icons/v2';
import { Text } from '@actual-app/components/text';
import { theme } from '@actual-app/components/theme';
import { View } from '@actual-app/components/view';
export function UnsupportedDirectivesNotice({
onClose,
}: {
onClose: () => void;
}) {
return (
<View
style={{
flex: 1,
padding: 32,
gap: 16,
alignItems: 'center',
justifyContent: 'center',
textAlign: 'center',
}}
>
<SvgAlertTriangle
width={32}
height={32}
style={{ color: theme.errorText }}
/>
<Text
style={{
fontSize: 18,
fontWeight: 600,
color: theme.pageText,
}}
>
<Trans>This category isn’t supported in the UI yet</Trans>
</Text>
<Text
style={{
fontSize: 13,
color: theme.pageTextLight,
maxWidth: 480,
lineHeight: 1.5,
}}
>
<Trans>
One or more <code>#template</code> lines in this category’s
notes couldn’t be parsed. Fix them as text first, then re-open
this modal to migrate.
</Trans>
</Text>
<Button onPress={onClose}>
<Trans>Close</Trans>
</Button>
</View>
);
}