forked from cerc-io/snowballtools-base
* Implement layout and functionality for git tab panel * Refactor project repository card prop * Add repo selection handler prop --------- Co-authored-by: neeraj <neeraj.rtly@gmail.com>
35 lines
778 B
TypeScript
35 lines
778 B
TypeScript
import React from 'react';
|
|
|
|
import { GitSelect } from '../../../../types/project';
|
|
|
|
const GitSelectionSection = ({
|
|
gitSelectionHandler,
|
|
}: {
|
|
gitSelectionHandler: (git: GitSelect) => void;
|
|
}) => {
|
|
return (
|
|
<>
|
|
<div
|
|
className="flex gap-4 border-b-2 border-gray-200 cursor-pointer p-1"
|
|
onClick={() => {
|
|
gitSelectionHandler(GitSelect.GITHUB);
|
|
}}
|
|
>
|
|
<div>^</div>
|
|
<div className="grow">Github</div>
|
|
<div>{'>'}</div>
|
|
</div>
|
|
<div
|
|
className="flex gap-4 border-b-2 border-gray-200 cursor-pointer p-1"
|
|
onClick={() => {}}
|
|
>
|
|
<div>^</div>
|
|
<div className="grow">Gitea</div>
|
|
<div>{'>'}</div>
|
|
</div>
|
|
</>
|
|
);
|
|
};
|
|
|
|
export default GitSelectionSection;
|