mirror of
https://github.com/go-gitea/gitea.git
synced 2024-12-02 09:45:19 +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>`;
|
||
|
}
|