"use client"; import { RiAndroidLine, RiDownload2Line, RiExternalLinkLine, RiNotification3Line, RiQrCodeLine, RiShieldCheckLine, } from "@remixicon/react"; import type { ReactNode } from "react"; import { Card } from "@/components/ui/card"; import { ApiTokensForm } from "./api-tokens-form"; interface ApiToken { id: string; name: string; tokenPrefix: string; lastUsedAt: Date | null; lastUsedIp: string | null; createdAt: Date; expiresAt: Date | null; revokedAt: Date | null; } interface CompanionTabProps { tokens: ApiToken[]; } const steps: { icon: typeof RiDownload2Line; title: string; description: ReactNode; }[] = [ { icon: RiDownload2Line, title: "Instale o app", description: ( <> Baixe o APK no{" "} GitHub > ), }, { icon: RiQrCodeLine, title: "Gere um token", description: "Crie um token abaixo para autenticar.", }, { icon: RiNotification3Line, title: "Configure permissões", description: "Conceda acesso às notificações.", }, { icon: RiShieldCheckLine, title: "Pronto!", description: "Notificações serão enviadas ao OpenSheets.", }, ]; export function CompanionTab({ tokens }: CompanionTabProps) { return ( {/* Header */} OpenSheets Companion Android Capture notificações de transações dos seus apps de banco (Nubank, Itaú, Bradesco, Inter, C6 e outros) e envie para sua caixa de entrada. {/* Steps */} {steps.map((step, index) => ( {index + 1}. {step.title} {step.description} ))} {/* Divider */} {/* Devices */} ); }
Capture notificações de transações dos seus apps de banco (Nubank, Itaú, Bradesco, Inter, C6 e outros) e envie para sua caixa de entrada.
{index + 1}. {step.title}
{step.description}