blob: 68f6853de7386a5f4156c85ce11ee9f631340295 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
import * as React from 'react';
import styled from 'styled-components';
import { Flex, LabelTinySemiBold, TitleBig } from '../lib/components';
export const HeaderTitle = styled(TitleBig)({
wordWrap: 'break-word',
hyphens: 'auto',
});
export const HeaderSubTitle = styled(LabelTinySemiBold).attrs({
color: 'whiteAlpha60',
})({});
interface SettingsHeaderProps {
children?: React.ReactNode;
className?: string;
}
function SettingsHeader(props: SettingsHeaderProps, forwardRef: React.Ref<HTMLDivElement>) {
return (
<Flex
ref={forwardRef}
$flexDirection="column"
$gap="small"
$margin={{ horizontal: 'medium', bottom: 'medium' }}
className={props.className}>
{props.children}
</Flex>
);
}
export default React.forwardRef(SettingsHeader);
|