mirror of
https://github.com/outline/outline.git
synced 2026-06-22 07:44:23 +03:00
26 lines
485 B
JavaScript
26 lines
485 B
JavaScript
// @flow
|
|
import * as React from "react";
|
|
import theme from "../../../shared/styles/theme";
|
|
|
|
type Props = {|
|
|
children: React.Node,
|
|
href?: string,
|
|
|};
|
|
|
|
export default ({ children, ...rest }: Props) => {
|
|
const style = {
|
|
borderRadius: "4px",
|
|
background: theme.secondaryBackground,
|
|
padding: ".5em 1em",
|
|
color: theme.text,
|
|
display: "block",
|
|
textDecoration: "none",
|
|
};
|
|
|
|
return (
|
|
<a width="100%" style={style} {...rest}>
|
|
{children}
|
|
</a>
|
|
);
|
|
};
|