11import { ActionTriggerView } from "@/components/ActionTriggerView"
2+ import { ActionIcon } from "@/components/ActionIcon"
23import { ActionCard } from "@/components/cards/ActionCard"
34import { Aurora } from "@/components/ui/Aurora"
45import { LandingContainer } from "@/components/ui/LandingContainer"
@@ -8,7 +9,6 @@ import { extractFlowTypesFromJson, extractFunctionDefinitionsFromJson, fetchMedi
89import { getActionBySlug , getLandingPage } from "@/lib/cms"
910import { findPageBlock } from "@/lib/pageBlocks"
1011import { createMetadata } from "@/lib/siteConfig"
11- import { getIcon } from "@/components/IconRenderer"
1212import type { Media } from "@/payload-types"
1313import { IconArrowLeft } from "@tabler/icons-react"
1414import type { Metadata } from "next"
@@ -26,11 +26,11 @@ export default async function ActionDetailPage({ params }: { params: LocaleSlugP
2626 const extractedFunctionDefinitions = extractFunctionDefinitionsFromJson ( moduleJson )
2727 const flowTypeItems = extractedFlowTypes . map ( ( item ) => ( {
2828 item,
29- icon : getIcon ( item . displayIcon , 32 ) ,
29+ icon : item . displayIcon ,
3030 } ) )
3131 const functionDefinitionItems = extractedFunctionDefinitions . map ( ( item ) => ( {
3232 item,
33- icon : getIcon ( item . displayIcon ?? "function" , 32 ) ,
33+ icon : item . displayIcon ?? "tabler:IconFunction" ,
3434 } ) )
3535 const references = ( action . references ?? [ ] ) . filter ( ( reference ) : reference is Exclude < typeof reference , number > => typeof reference !== "number" )
3636 const tags = ( action . tags ?? [ ] ) . filter ( ( tag ) : tag is string => Boolean ( tag ) )
@@ -58,7 +58,7 @@ export default async function ActionDetailPage({ params }: { params: LocaleSlugP
5858 < div className = "flex flex-col gap-6 sm:flex-row sm:items-start" >
5959 { action . icon && (
6060 < div className = "flex size-20 shrink-0 items-center justify-center overflow-hidden rounded-3xl border border-white/10 bg-light text-white" >
61- { getIcon ( action . icon , 40 ) }
61+ < ActionIcon icon = { action . icon } size = { 40 } />
6262 </ div >
6363 ) }
6464
0 commit comments