import { Card, CardContent, CardDescription, CardHeader, CardTitle, } from "@/components/ui/card"; import { api } from "@/utils/api"; import { FolderUp } from "lucide-react"; import { AddDestination } from "./add-destination"; import { UpdateDestination } from "./update-destination"; import { DeleteDestination } from "./delete-destination"; export const ShowDestinations = () => { const { data } = api.destination.all.useQuery(); return (
S3 Destinations Add your providers like AWS S3, Cloudflare R2, Wasabi, DigitalOcean Spaces etc. {data?.length === 0 ? (
To create a backup is required to set at least 1 provider.
) : (
{data?.map((destination, index) => (
{index + 1}. {destination.name}
))}
)}
); };