"use client";
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
import { UploadIcon } from "lucide-react";
import { Button } from "@/components/ui/button";
import TableTeks from "./components/table-teks";
import Link from "next/link";

const ReactTableTeksPage = () => {
  return (
    <div>
      <div className="space-y-4 m-3">
        <Card>
          <CardHeader className="border-b border-solid border-default-200 mb-6">
            <CardTitle>
              <div className="flex items-center">
                <div className="flex-1 text-xl font-medium text-default-900">
                  Text
                </div>

                <div className="flex-none">
                  <Link href={"/admin/content/document/create"}>
                    <Button color="primary" className="text-white">
                      <UploadIcon size={18} className="mr-2" />
                      Create Text
                    </Button>
                  </Link>
                </div>
              </div>
            </CardTitle>
          </CardHeader>
          <CardContent className="p-0">
            <TableTeks />
          </CardContent>
        </Card>
      </div>
    </div>
  );
};

export default ReactTableTeksPage;
