summaryrefslogtreecommitdiff
path: root/Jel/Views/Dashboard/DashboardSectionTitleView.swift
blob: 608458acf92f0e91af3ac8dbfb0674714cd136a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//
//  DashboardSectionTitleView.swift
//  Jel
//
//  Created by zerocool on 12/27/23.
//

import SwiftUI

struct DashboardSectionTitleView: View {
  @State var titleText: String
  
  init(_ title: String) {
    self.titleText = title
  }
  
  var body: some View {
    HStack {
      Text(titleText)
        .font(.title2)
        .bold()
      Spacer()
    }
  }
}

#Preview {
  DashboardSectionTitleView("Title")
}