import React, { DetailedHTMLProps, ReactNode, SVGProps, useRef } from "react";
import clsx from "clsx";
import {
Nest,
Strapi,
Supabase,
Hasura,
Airtable,
Oracle,
MongoDB,
PostgreSql,
MySql,
MsSqlServer,
SQLite,
} from "../assets/integration-icons";
import { useInView } from "framer-motion";
export const EnterpriseDataSource = ({ className }: { className?: string }) => {
return (
Integrate{" "}
with any data source.
Built-in integrations
15+ native providers incl. GraphQL & Rest API's
{[...list1, ...list1].map(
({ icon: Icon, label, tooltip }, index) => (
}
/>
),
)}
Direct database access
Built-in tools for automatic generation of APIs to
connect RDS and NoSQL data sources. Create proxy
APIs instantly using database introspection,
ensuring 100% compatibility with the Refine
front-end.
{[...list2, ...list2].map(
({ icon: Icon, label, tooltip }, index) => (
}
/>
),
)}
);
};
const PackagesContainer = ({
children,
className,
animDirection,
...props
}: DetailedHTMLProps, HTMLDivElement> & {
animDirection: "left" | "right";
}) => {
const ref = useRef(null);
const inView = useInView(ref);
return (
);
};
const PackageItem = (props: {
icon: ReactNode;
label: string;
tooltip: string | null;
}) => {
const { tooltip, icon, label } = props;
return (
{icon}
{label}
{tooltip && (
)}
);
};
const list1 = [
{
icon: (props: SVGProps) => ,
label: "NestJS",
tooltip: null,
},
{
icon: (props: SVGProps) => ,
label: "Strapi",
tooltip: null,
},
{
icon: (props: SVGProps) => ,
label: "Supabase",
tooltip: null,
},
{
icon: (props: SVGProps) => ,
label: "Hasura",
tooltip: null,
},
{
icon: (props: SVGProps) => ,
label: "Airtable",
tooltip: null,
},
] as const;
const list2 = [
{
icon: (props: SVGProps) => ,
label: "Oracle",
tooltip: null,
},
{
icon: (props: SVGProps) => ,
label: "PostgreSQL",
tooltip: null,
},
{
icon: (props: SVGProps) => ,
label: "MySQL",
tooltip: null,
},
{
icon: (props: SVGProps) => ,
label: "SQLite",
tooltip: null,
},
{
icon: (props: SVGProps) => ,
label: "MS SQL Server",
tooltip: null,
},
{
icon: (props: SVGProps) => ,
label: "Mongo DB",
tooltip: null,
},
] as const;