mirror of
https://github.com/go-gitea/gitea.git
synced 2024-12-04 14:46:57 -05:00
6 lines
240 B
JavaScript
6 lines
240 B
JavaScript
|
const { StaticUrlPrefix } = window.config;
|
||
|
|
||
|
export function svg(name, size) {
|
||
|
return `<svg class="svg ${name}" width="${size}" height="${size}" aria-hidden="true"><use xlink:href="${StaticUrlPrefix}/img/svg/icons.svg#${name}"/></svg>`;
|
||
|
}
|