import { FC } from 'react' import Link from 'next/link' import { Typography } from '@supabase/ui' import { observer } from 'mobx-react-lite' import { partition } from 'lodash' import { useStore } from 'hooks' import SQLCard from './SQLCard' import { SQL_TEMPLATES } from '../SQLEditor.constants' interface Props {} const SQLTemplates: FC = ({}) => { const [templates, quickstarts] = partition(SQL_TEMPLATES, { type: 'template' }) const { ui } = useStore() const projectRef = ui.selectedProject?.ref return (
Scripts Quick scripts to run on your database.
Click on any script to fill the query box, modify the script, then click Run. More scripts coming soon!
{templates.map((template) => (
))}
Quick start While we're in beta, we want to offer a quick way to explore Supabase. While we build importers, check out these simple starters.
Click on any script to fill the query box, modify the script, then click{' '} Run. More coming soon!
{quickstarts.map((template) => (
))}
) } export default observer(SQLTemplates)