36 lines
1.0 KiB
Swift
36 lines
1.0 KiB
Swift
import SwiftUI
|
|
|
|
struct CreatorChannelLiveStartButton: View {
|
|
let action: () -> Void
|
|
|
|
var body: some View {
|
|
Button(action: action) {
|
|
HStack(spacing: SodaSpacing.s6) {
|
|
Image("ic_new_create_live")
|
|
.resizable()
|
|
.scaledToFit()
|
|
.frame(width: 24, height: 24)
|
|
|
|
Text(I18n.CreatorChannelLive.startLive)
|
|
.appFont(size: 16, weight: .bold)
|
|
.foregroundColor(.white)
|
|
.lineLimit(1)
|
|
}
|
|
.frame(maxWidth: .infinity)
|
|
.frame(height: 56)
|
|
.background(Color.soda400)
|
|
.clipShape(Capsule())
|
|
}
|
|
.buttonStyle(.plain)
|
|
}
|
|
}
|
|
|
|
struct CreatorChannelLiveStartButton_Previews: PreviewProvider {
|
|
static var previews: some View {
|
|
CreatorChannelLiveStartButton(action: {})
|
|
.padding(SodaSpacing.s20)
|
|
.background(Color.black)
|
|
.previewLayout(.sizeThatFits)
|
|
}
|
|
}
|