JSFiddle - React, Tailwind, and code Playground

JavaScript

f=
i=>`  ####
 # # #
###  #
# # #
####`.replace(/#/g,i)

console.log(f("r"))