diff --git a/apps/studio/components/interfaces/Database/Functions/FunctionsList/FunctionList.tsx b/apps/studio/components/interfaces/Database/Functions/FunctionsList/FunctionList.tsx index b2e7d008db22c..be7259728a941 100644 --- a/apps/studio/components/interfaces/Database/Functions/FunctionsList/FunctionList.tsx +++ b/apps/studio/components/interfaces/Database/Functions/FunctionsList/FunctionList.tsx @@ -1,6 +1,6 @@ import { PermissionAction } from '@supabase/shared-types/out/constants' import { includes, noop, sortBy } from 'lodash' -import { Edit, Edit2, FileText, MoreVertical, Trash } from 'lucide-react' +import { Copy, Edit, Edit2, FileText, MoreVertical, Trash } from 'lucide-react' import { useRouter } from 'next/router' import { ButtonTooltip } from 'components/ui/ButtonTooltip' @@ -23,6 +23,7 @@ interface FunctionListProps { schema: string filterString: string isLocked: boolean + duplicateFunction: (fn: any) => void editFunction: (fn: any) => void deleteFunction: (fn: any) => void } @@ -31,6 +32,7 @@ const FunctionList = ({ schema, filterString, isLocked, + duplicateFunction = noop, editFunction = noop, deleteFunction = noop, }: FunctionListProps) => { @@ -132,6 +134,7 @@ const FunctionList = ({
Client API docs
)} +Edit function
@@ -169,6 +172,13 @@ const FunctionList = ({Edit function with Assistant
Duplicate function
++ Describe your app and AI will create a complete table schema. +
++ Select a pre-built schema to get started quickly. +
+- Save time by starting from a ready-made table schema. -
-