"src/git@gitlab.insrt.uk:revolt.gay/revite.git" did not exist on "75535720297206e938ebf2111c88916dd1678e31"
Newer
Older
import styled from "styled-components";
export default function Tooltip(props: Props) {
const { children, content, ...tippyProps } = props;
return (
<Tippy content={content} {...tippyProps}>
{/*
const PermissionTooltipBase = styled.div`
display: flex;
align-items: center;
flex-direction: column;
span {
font-weight: 700;
text-transform: uppercase;
color: var(--secondary-foreground);
font-size: 11px;
}
code {
font-family: var(--monospace-font);
props: Omit<Props, "content"> & { permission: string },
const { permission, ...tooltipProps } = props;
return (
<Tooltip
content={
<PermissionTooltipBase>
<span>
<Text id="app.permissions.required" />
</span>
<code>{permission}</code>
</PermissionTooltipBase>
}
{...tooltipProps}
/>
);