"use client"
import React from "react"
import { Text } from "../Text"

type ListGroupProps = {
  groupLabel: string
  children: React.ReactNode
}

export const ListGroup = ({ groupLabel, children }: ListGroupProps) => {
  return (
    <div>
      <div className="px-4 py-3">
        <Text weight="semibold">{groupLabel}</Text>
      </div>
      {children}
    </div>
  )
}
