import { observer } from "mobx-react"; import * as React from "react"; import styled from "styled-components"; import { s } from "@shared/styles"; import Flex from "~/components/Flex"; type Props = { children?: React.ReactNode; label: React.ReactNode | string; }; const Labeled: React.FC = ({ label, children, ...props }: Props) => ( {children} ); export const Label = styled(Flex)` font-weight: 500; padding-bottom: 4px; display: inline-block; color: ${s("text")}; `; export default observer(Labeled);