import type { ReactView } from "@ethicdevs/react-monolith";
import React from "react";
import type { Organization, PullRequest, Repository } from "@prisma/client";
import type { CommonProps } from "../../types";
import { Grid, IslandWrapper, Layout, PageWrapper } from "../../components";
import RepositoryHero from "../../islands/RepositoryHero";
export interface RepositoryPullRequestCreateViewProps extends CommonProps {
errorMessage?: string | null;
initialValues?: PullRequest;
parentOrg: Organization;
repo: Repository;
}
const RepositoryPullRequestCreateView: ReactView<RepositoryPullRequestCreateViewProps> =
({ commonProps, parentOrg, repo }) => {
return (
<Layout {...commonProps}>
<PageWrapper>
<IslandWrapper data-islandid={`${RepositoryHero.name}$$0`}>
<RepositoryHero
parentOrg={parentOrg}
path={`Pull Requests / New`}
repo={repo}
/>
</IslandWrapper>
<Grid.Col fluid style={{ marginTop: 32 }}></Grid.Col>
</PageWrapper>
</Layout>
);
};
RepositoryPullRequestCreateView.displayName = "RepositoryPullRequestCreateView";
export default RepositoryPullRequestCreateView;