import { ComponentPropsWithoutRef } from 'react';
import { Link, Outlet, useParams } from 'react-router-dom';
import { Heading } from 'components/shared/Heading';
import { WavyBorder } from 'components/shared/WavyBorder';
import { Button } from 'components/shared/Button';
import { CrossIcon } from 'components/shared/CustomIcon';
import { cn } from 'utils/classnames';
import * as Dialog from '@radix-ui/react-dialog';
export interface CreateProjectLayoutProps
extends ComponentPropsWithoutRef<'section'> {}
export const CreateProjectLayout = ({
className,
...props
}: CreateProjectLayoutProps) => {
const { orgSlug } = useParams();
const closeBtnLink = `/${orgSlug}`;
const heading = (
Create new project
);
return (
<>
{/* Desktop */}
{heading}
{/* Cannot save btn as variable since responsive variant don't work with compoundVariant */}
}
aria-label="close"
/>
{/* Mobile */}
{/* Setting modal={false} so even if modal is active on desktop, it doesn't block clicks */}
{/* Not using since modal={false} disables it and its content will not show */}