Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | 5x | import { Divider, DividerProps, StackProps } from "@mui/material";
import { HorizontalStack } from "@components/commons";
import { ITextProps, Text } from "@common/Text/Text";
interface TextDividerProps extends ITextProps {
dividerProps?: DividerProps;
wrapperProps?: StackProps;
}
function TextDivider({
dividerProps,
wrapperProps,
...rest
}: TextDividerProps) {
return (
<HorizontalStack {...wrapperProps}>
<Text {...rest} />
<Divider sx={{ flex: 1 }} {...dividerProps} />
</HorizontalStack>
);
}
export default TextDivider;
|