refactor: remove unused SummaryPanel component from BulkActionConfirmationModal

This commit is contained in:
Firman Ramdhani
2026-07-23 15:59:11 +07:00
parent 79b291cf74
commit 8f2eecd8ae
@@ -83,81 +83,6 @@ const ModalFormBody = React.memo(function ModalFormBody<
form?: ReturnType<typeof useForm<TMeta>>;
}) => React.ReactElement;
// ---------------------------------------------------------------------------
// Summary Panel (shown after processing completes)
// ---------------------------------------------------------------------------
// const SummaryPanel = React.memo(function SummaryPanel({
// result,
// t,
// }: {
// result: AggregatedResult;
// t: (key: string) => string;
// }) {
// return (
// <Paper p="md" radius="md" withBorder>
// <Stack gap="sm">
// {/* Stats row */}
// <Group gap="lg">
// <Group gap="xs">
// <ThemeIcon variant="light" color="blue" size="sm" radius="xl">
// <Info size={14} />
// </ThemeIcon>
// <Text size="sm" fw={500}>
// {t('common:bulkAction.totalItems')}:
// </Text>
// <Text size="sm" c="dimmed">
// {result.totalItems}
// </Text>
// </Group>
// <Group gap="xs">
// <ThemeIcon variant="light" color="green" size="sm" radius="xl">
// <Check size={14} />
// </ThemeIcon>
// <Text size="sm" fw={500}>
// {t('common:bulkAction.totalSuccess')}:
// </Text>
// <Text size="sm" c="dimmed">
// {result.totalSuccess}
// </Text>
// </Group>
// <Group gap="xs">
// <ThemeIcon variant="light" color="red" size="sm" radius="xl">
// <X size={14} />
// </ThemeIcon>
// <Text size="sm" fw={500}>
// {t('common:bulkAction.totalFailed')}:
// </Text>
// <Text size="sm" c="dimmed">
// {result.totalFailed}
// </Text>
// </Group>
// </Group>
// {/* Messages list */}
// {result.messages.length > 0 && (
// <>
// <Text size="sm" fw={600} mt="xs">
// {t('common:bulkAction.messages')}:
// </Text>
// <List size="sm" spacing="xs" withPadding>
// {result.messages.map((msg, idx) => (
// <List.Item key={idx}>
// <Text size="xs" c="dimmed">
// {msg}
// </Text>
// </List.Item>
// ))}
// </List>
// </>
// )}
// </Stack>
// </Paper>
// );
// });
// ---------------------------------------------------------------------------
// BulkActionConfirmationModal
// ---------------------------------------------------------------------------