From 796fdeed465f8a4f9d4aaaaf9ddf448f91e901e6 Mon Sep 17 00:00:00 2001 From: Joe Carstairs <65492573+Sycamost@users.noreply.github.com> Date: Fri, 13 Oct 2023 21:26:13 +0100 Subject: Pulls out CommitteeList component --- .../CommitteeList/CommitteeListItem.astro | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 src/components/CommitteeList/CommitteeListItem.astro (limited to 'src/components/CommitteeList/CommitteeListItem.astro') diff --git a/src/components/CommitteeList/CommitteeListItem.astro b/src/components/CommitteeList/CommitteeListItem.astro new file mode 100644 index 0000000..d026047 --- /dev/null +++ b/src/components/CommitteeList/CommitteeListItem.astro @@ -0,0 +1,39 @@ +--- +import CommitteeRole from '$enums/CommitteeRole'; +import tRole from '$i18n/translations/enums/committeeRole'; +import translate from '$i18n/translate'; +import type { CommitteeMember } from '$types/CommitteeMember'; +import type Locale from '$types/Locale'; + +interface Props { + committeeMember: CommitteeMember; +} + +const { committeeMember } = Astro.props; + +const locale = Astro.params.locale as Locale; + +const t = translate(locale); +--- + +