mirror of
https://github.com/supabase/supabase.git
synced 2026-10-12 21:05:06 +03:00
* Break down new project page into smaller components * Fix types * Address comments * Add min length check for project name in project settings * Fix tests
35 lines
1.0 KiB
TypeScript
35 lines
1.0 KiB
TypeScript
import InformationBox from 'components/ui/InformationBox'
|
|
import { AlertCircle } from 'lucide-react'
|
|
|
|
interface NotOrganizationOwnerWarningProps {
|
|
slug?: string
|
|
}
|
|
|
|
// [Joshen] This can just use NoPermission component i think
|
|
export const NotOrganizationOwnerWarning = ({ slug }: NotOrganizationOwnerWarningProps) => {
|
|
return (
|
|
<div className="mt-4">
|
|
<InformationBox
|
|
icon={<AlertCircle size="20" strokeWidth={1.5} />}
|
|
defaultVisibility={true}
|
|
hideCollapse
|
|
title="You do not have permission to create a project"
|
|
description={
|
|
<div className="space-y-3">
|
|
<p className="text-sm leading-normal">
|
|
{slug ? (
|
|
<>
|
|
Contact the owner or administrator to create a new project in the{' '}
|
|
<code>{slug}</code> organization.
|
|
</>
|
|
) : (
|
|
<>Contact the owner or administrator to create a new project.</>
|
|
)}
|
|
</p>
|
|
</div>
|
|
}
|
|
/>
|
|
</div>
|
|
)
|
|
}
|