mirror of
https://github.com/outline/outline.git
synced 2026-06-13 11:25:03 +03:00
cad670f19c
Co-authored-by: Tom Moor <tom@getoutline.com> closes #6795
38 lines
1.1 KiB
TypeScript
38 lines
1.1 KiB
TypeScript
import React from "react";
|
|
import type { BaseIconProps } from ".";
|
|
|
|
export function GitLabIssueStatusIcon(props: BaseIconProps) {
|
|
const { state, className, size = 16 } = props;
|
|
|
|
switch (state.name) {
|
|
case "opened":
|
|
return (
|
|
<svg
|
|
viewBox="0 0 16 16"
|
|
width={size}
|
|
height={size}
|
|
fill={state.color}
|
|
className={className}
|
|
>
|
|
<path d="M8 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z" />
|
|
<path d="M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Z" />
|
|
</svg>
|
|
);
|
|
case "closed":
|
|
return (
|
|
<svg
|
|
viewBox="0 0 16 16"
|
|
width={size}
|
|
height={size}
|
|
fill={state.color}
|
|
className={className}
|
|
>
|
|
<path d="M11.28 6.78a.75.75 0 0 0-1.06-1.06L7.25 8.69 5.78 7.22a.75.75 0 0 0-1.06 1.06l2 2a.75.75 0 0 0 1.06 0l3.5-3.5Z" />
|
|
<path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0Zm-1.5 0a6.5 6.5 0 1 0-13 0 6.5 6.5 0 0 0 13 0Z" />
|
|
</svg>
|
|
);
|
|
default:
|
|
return null;
|
|
}
|
|
}
|