xonecas.io
556
Bn

bees-nest / files

bees-nest / src / components / crawl-interface.tsx

1.3 KB
1"use client";
2
3import { Badge } from "@/components/ui/badge";
4import { Button } from "@/components/ui/button";
5import {
6  Card,
7  CardContent,
8  CardDescription,
9  CardFooter,
10  CardHeader,
11  CardTitle,
12} from "@/components/ui/card";
13
14export function CrawlInterface() {
15  return (
16    <div className="flex h-full flex-col items-center justify-center bg-muted/10 p-6">
17      <div className="flex w-full max-w-md flex-col gap-6">
18        <div className="flex items-center gap-3">
19          <Badge variant="secondary">Crawl opt-in</Badge>
20          <span className="text-xs uppercase tracking-[0.2em] text-muted-foreground">
21            Private by default
22          </span>
23        </div>
24
25        <Card className="shadow-sm">
26          <CardHeader>
27            <CardTitle>Start a crawl</CardTitle>
28            <CardDescription>
29              Opt in to crawl URLs and bring your sources online.
30            </CardDescription>
31          </CardHeader>
32          <CardContent>
33            <div className="rounded-2xl border border-dashed border-border/70 bg-muted/40 px-4 py-8 text-center text-sm text-muted-foreground">
34              Opt in to crawl URLs
35            </div>
36          </CardContent>
37          <CardFooter>
38            <Button className="w-full">Enable crawling</Button>
39          </CardFooter>
40        </Card>
41      </div>
42    </div>
43  );
44}