mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
# Conflicts: # src/analytics.ts # src/components/FileExplorer.tsx # src/components/SideBarBodyWrapper.tsx # src/components/settings/SettingsBar.tsx # src/content.tsx # src/platforms/GitHub/API.ts # src/platforms/GitHub/DOMHelper.ts # src/platforms/GitHub/index.ts # src/platforms/platform.d.ts # src/styles/index.scss # src/utils/DOMHelper.ts # src/utils/config/helper.ts # src/utils/config/migrations/1.3.4.ts # src/utils/config/migrations/index.ts # src/utils/general.ts # src/utils/storageHelper.ts
15 lines
319 B
TypeScript
15 lines
319 B
TypeScript
import { Box } from '@primer/react'
|
|
import * as React from 'react'
|
|
|
|
type Props = {
|
|
title?: React.ReactNode
|
|
}
|
|
|
|
export function SettingsSection({ title, children }: React.PropsWithChildren<Props>) {
|
|
return (
|
|
<Box display="grid" gridGap={'2px'}>
|
|
{title && <h3>{title}</h3>}
|
|
{children}
|
|
</Box>
|
|
)
|
|
}
|