mirror of
https://github.com/outline/outline.git
synced 2026-11-21 13:34:02 +03:00
26 lines
520 B
TypeScript
26 lines
520 B
TypeScript
import * as React from "react";
|
|
import theme from "@shared/styles/theme";
|
|
|
|
type Props = {
|
|
children: React.ReactNode;
|
|
href?: string;
|
|
};
|
|
|
|
export default ({ children, ...rest }: Props) => {
|
|
const style = {
|
|
border: `1.5px solid ${theme.backgroundSecondary}`,
|
|
borderRadius: "4px",
|
|
padding: ".75em 1em",
|
|
color: theme.text,
|
|
display: "block",
|
|
textDecoration: "none",
|
|
width: "100%",
|
|
};
|
|
|
|
return (
|
|
<div style={style} className="content-diff" {...rest}>
|
|
{children}
|
|
</div>
|
|
);
|
|
};
|