<script lang="ts" setup>
import { Tooltip } from 'ant-design-vue'
import { RedoOutlined } from '@ant-design/icons-vue'
import { useTableContext } from '../../hooks/useTableContext'
import { useI18n } from '@/hooks/web/useI18n'

defineOptions({ name: 'RedoSetting' })

const table = useTableContext()
const { t } = useI18n()

function redo() {
  table.reload()
}
</script>

<template>
  <Tooltip placement="top">
    <template #title>
      <span>{{ t('common.redo') }}</span>
    </template>
    <RedoOutlined @click="redo" />
  </Tooltip>
</template>
