Update frontend base

This commit is contained in:
jeffvli
2022-10-24 22:19:52 -07:00
parent 921c688c94
commit f8e7d02daf
35 changed files with 1464 additions and 491 deletions
@@ -0,0 +1,27 @@
import React from 'react';
import styled from '@emotion/styled';
import { Text } from '@/renderer/components';
import { Font } from '@/renderer/styles';
interface ServerSectionProps {
children: React.ReactNode;
title: string | React.ReactNode;
}
const Container = styled.div``;
const Section = styled.div`
padding: 1rem;
border: 1px solid var(--generic-border-color);
`;
export const ServerSection = ({ title, children }: ServerSectionProps) => {
return (
<Container>
<Text font={Font.EPILOGUE} size="sm">
{title}
</Text>
<Section>{children}</Section>
</Container>
);
};