mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 04:20:12 +02:00
28 lines
765 B
TypeScript
28 lines
765 B
TypeScript
import { Stack, Group } from '@mantine/core';
|
|
import { RiAlertFill } from 'react-icons/ri';
|
|
import { Text } from '/@/renderer/components';
|
|
import { ReactNode } from 'react';
|
|
|
|
interface ActionRequiredContainerProps {
|
|
children: ReactNode;
|
|
title: string;
|
|
}
|
|
|
|
export const ActionRequiredContainer = ({ title, children }: ActionRequiredContainerProps) => (
|
|
<Stack sx={{ cursor: 'default', maxWidth: '700px' }}>
|
|
<Group>
|
|
<RiAlertFill
|
|
color="var(--warning-color)"
|
|
size={30}
|
|
/>
|
|
<Text
|
|
size="xl"
|
|
sx={{ textTransform: 'uppercase' }}
|
|
>
|
|
{title}
|
|
</Text>
|
|
</Group>
|
|
<Stack>{children}</Stack>
|
|
</Stack>
|
|
);
|