The economic impact of lockdowns: A theoretical assessment