import Image from 'next/image'; const TableOne = () => { // Table data const tableData = [ { id: 1, token: "1", name: "John Doe", status: { text: "Done", variant: "success", color: "text-success-600", bg: "bg-success-50", dark: { color: "dark:text-success-500", bg: "dark:bg-success-500/15" } } }, { id: 2, token: "1", name: "John Doe", status: { text: "In-Queue", variant: "warning", color: "text-warning-600", bg: "bg-warning-50", dark: { color: "dark:text-orange-400", bg: "dark:bg-warning-500/15" } } }, { id: 3, token: "1", name: "John Doe", status: { text: "Cancelled", variant: "error", color: "text-error-600", bg: "bg-error-50", dark: { color: "dark:text-error-500", bg: "dark:bg-error-500/15" } } }, { id: 4, token: "1", name: "John Doe", status: { text: "Done", variant: "success", color: "text-success-600", bg: "bg-success-50", dark: { color: "dark:text-success-500", bg: "dark:bg-success-500/15" } } }, { id: 5, token: "1", name: "John Doe", status: { text: "In-Queue", variant: "warning", color: "text-warning-600", bg: "bg-warning-50", dark: { color: "dark:text-orange-400", bg: "dark:bg-warning-500/15" } } }, { id: 6, token: "1", name: "John Doe", status: { text: "Cancelled", variant: "error", color: "text-error-600", bg: "bg-error-50", dark: { color: "dark:text-error-500", bg: "dark:bg-error-500/15" } } } ]; // Action button component const ActionButton = ({ type }) => (

{type}

); return (
{/* Table Header */} {/* Table Body */} {tableData.map((item) => ( {/* Token Column */} {/* Name Column */} {/* Status Column */} {/* Options Column (Desktop) */} ))}

Token

Name

Status

Options

{item.token}

{item.name}

{/* Mobile Actions */}

{item.status.text}

); }; export default TableOne;