Files
dnsmasq-admin/app/records/_components/DeleteButton.tsx
T
jamo.siu@gmail.com cc5e98f29c refactor: optimised UI and UX
- add tag style to status;
- add button style to action links of each domain;
- add Notiflix for better notification experiences
2026-10-12 16:22:37 +08:00

17 lines
339 B
TypeScript

"use client"
import { dangerButtonClass } from "./button-styles"
export function DeleteButton() {
return (
<button
type="submit"
onClick={(event) => {
if (!window.confirm("确定要删除这条记录吗?")) event.preventDefault()
}}
className={dangerButtonClass}>
删除
</button>
)
}