mirror of
https://github.com/go-gitea/gitea
synced 2024-12-19 22:34:10 +01: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>`;
|
||
|
}
|