mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
26 lines
496 B
TypeScript
26 lines
496 B
TypeScript
import {Fragment} from 'react';
|
|
import styled from '@emotion/styled';
|
|
|
|
import TopRight from 'sentry-images/pattern/highlight-top-right.svg';
|
|
|
|
type Props = {
|
|
children: React.ReactNode;
|
|
};
|
|
|
|
export default function HighlightCornerContainer({children}: Props) {
|
|
return (
|
|
<Fragment>
|
|
<PositionTopRight src={TopRight} />
|
|
{children}
|
|
</Fragment>
|
|
);
|
|
}
|
|
|
|
const PositionTopRight = styled('img')`
|
|
position: absolute;
|
|
width: 350px;
|
|
right: 0;
|
|
top: 0;
|
|
pointer-events: none;
|
|
`;
|